mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
gnu: hplip-minimal: Remove dependency on Python & co.
This reduces the closure from 432 MiB to 160 MiB. * gnu/packages/cups.scm (hplip-minimal)[arguments]: Pass "--enable-lite-build" and remove 'wrap-binaries' phase. [inputs]: Remove all things Python.
This commit is contained in:
parent
ea843715b5
commit
c9b3a72b67
1 changed files with 15 additions and 5 deletions
|
@ -51,7 +51,8 @@ (define-module (gnu packages cups)
|
|||
#:use-module ((guix licenses) #:prefix license:)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix utils)
|
||||
#:use-module (srfi srfi-1))
|
||||
#:use-module (srfi srfi-1)
|
||||
#:use-module (ice-9 match))
|
||||
|
||||
(define-public cups-filters
|
||||
(package
|
||||
|
@ -564,10 +565,19 @@ (define-public hplip-minimal
|
|||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments hplip)
|
||||
((#:configure-flags cf)
|
||||
`(delete "--enable-qt5" ,cf))))
|
||||
(inputs
|
||||
(fold alist-delete (package-inputs hplip)
|
||||
'("python-pygobject" "python-pyqt")))
|
||||
;; Produce a "light build", meaning that only the printer (CUPS) and
|
||||
;; scanner (SANE) support gets built, without all the 'hp-*'
|
||||
;; command-line tools.
|
||||
`(cons "--enable-lite-build"
|
||||
(delete "--enable-qt5" ,cf)))
|
||||
((#:phases phases)
|
||||
;; The 'wrap-binaries' is not needed here since the 'hp-*' programs
|
||||
;; are not installed.
|
||||
`(alist-delete 'wrap-binaries ,phases))))
|
||||
(inputs (remove (match-lambda
|
||||
((label . _)
|
||||
(string-prefix? "python" label)))
|
||||
(package-inputs hplip)))
|
||||
(synopsis "GUI-less version of hplip")))
|
||||
|
||||
(define-public foomatic-filters
|
||||
|
|
Loading…
Reference in a new issue