mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 21:59:08 -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 licenses) #:prefix license:)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
#:use-module (guix utils)
|
#:use-module (guix utils)
|
||||||
#:use-module (srfi srfi-1))
|
#:use-module (srfi srfi-1)
|
||||||
|
#:use-module (ice-9 match))
|
||||||
|
|
||||||
(define-public cups-filters
|
(define-public cups-filters
|
||||||
(package
|
(package
|
||||||
|
@ -564,10 +565,19 @@ (define-public hplip-minimal
|
||||||
(arguments
|
(arguments
|
||||||
(substitute-keyword-arguments (package-arguments hplip)
|
(substitute-keyword-arguments (package-arguments hplip)
|
||||||
((#:configure-flags cf)
|
((#:configure-flags cf)
|
||||||
`(delete "--enable-qt5" ,cf))))
|
;; Produce a "light build", meaning that only the printer (CUPS) and
|
||||||
(inputs
|
;; scanner (SANE) support gets built, without all the 'hp-*'
|
||||||
(fold alist-delete (package-inputs hplip)
|
;; command-line tools.
|
||||||
'("python-pygobject" "python-pyqt")))
|
`(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")))
|
(synopsis "GUI-less version of hplip")))
|
||||||
|
|
||||||
(define-public foomatic-filters
|
(define-public foomatic-filters
|
||||||
|
|
Loading…
Reference in a new issue