mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
gnu: cups-filters: Use ghostscript with CUPS driver.
* gnu/packages/cups.scm (ghostscript/cups): New variable. (cups-filters): Use ghostscript/cups. Capture path to "gs" at compilation time. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
b6dfaf17a1
commit
95264cc6b9
1 changed files with 12 additions and 1 deletions
|
@ -40,6 +40,14 @@ (define-module (gnu packages cups)
|
|||
#:use-module (gnu packages pkg-config)
|
||||
#:use-module (gnu packages tls))
|
||||
|
||||
;; Delay to avoid module circularity problems.
|
||||
(define ghostscript/cups
|
||||
(delay
|
||||
(package (inherit ghostscript)
|
||||
(name "ghostscript-with-cups")
|
||||
(inputs `(("cups" ,cups-minimal)
|
||||
,@(package-inputs ghostscript))))))
|
||||
|
||||
(define-public cups-filters
|
||||
(package
|
||||
(name "cups-filters")
|
||||
|
@ -74,6 +82,9 @@ (define-public cups-filters
|
|||
`(,(string-append "--with-test-font-path="
|
||||
(assoc-ref %build-inputs "font-dejavu")
|
||||
"/share/fonts/truetype/DejaVuSans.ttf")
|
||||
,(string-append "--with-gs-path="
|
||||
(assoc-ref %build-inputs "ghostscript")
|
||||
"/bin/gsc")
|
||||
,(string-append "--with-rcdir="
|
||||
(assoc-ref %outputs "out") "/etc/rc.d"))))
|
||||
(native-inputs
|
||||
|
@ -84,7 +95,7 @@ (define-public cups-filters
|
|||
("fontconfig" ,fontconfig)
|
||||
("freetype" ,freetype)
|
||||
("font-dejavu" ,font-dejavu) ;needed by test suite
|
||||
("ghostscript" ,ghostscript)
|
||||
("ghostscript" ,(force ghostscript/cups))
|
||||
("ijs" ,ijs)
|
||||
("dbus" ,dbus)
|
||||
("lcms" ,lcms)
|
||||
|
|
Loading…
Reference in a new issue