mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
gnu: cups: Fix cross-compiling.
* gnu/packages/cups.scm (cups-filters)[native-inputs]: When cross-compiling add cups-minimal. (cups-minimal)[native-inputs]: When cross-compiling add this-package. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> Change-Id: Ifcc34f09d0a5afb3a1b95be51715c509b8ef5ed4
This commit is contained in:
parent
a7083cab3a
commit
2337666833
1 changed files with 10 additions and 3 deletions
|
@ -8,6 +8,7 @@
|
|||
;;; Copyright © 2017–2022 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||
;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
|
||||
;;; Copyright © 2021, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||
;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -204,8 +205,11 @@ (define-public cups-filters
|
|||
(find-files (string-append #$output
|
||||
"/lib/cups/filter"))))))))
|
||||
(native-inputs
|
||||
(list `(,glib "bin") ; for gdbus-codegen
|
||||
pkg-config))
|
||||
(append (if (%current-target-system)
|
||||
(list cups-minimal)
|
||||
'())
|
||||
(list `(,glib "bin") ; for gdbus-codegen
|
||||
pkg-config)))
|
||||
(inputs
|
||||
(list avahi
|
||||
fontconfig
|
||||
|
@ -315,7 +319,10 @@ (define-public cups-minimal
|
|||
;; to a missing font. Substitute the last observed count.
|
||||
(("(\\$count != )33" _ prefix)
|
||||
(string-append prefix "39"))))))))
|
||||
(native-inputs (list config pkg-config))
|
||||
(native-inputs (cons* config pkg-config
|
||||
(if (%current-target-system)
|
||||
(list this-package)
|
||||
'())))
|
||||
(inputs (list zlib gnutls))
|
||||
(home-page "https://openprinting.github.io/cups")
|
||||
(synopsis "The Common Unix Printing System")
|
||||
|
|
Loading…
Reference in a new issue