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:
Ludovic Courtès 2019-03-15 22:36:46 +01:00
parent ea843715b5
commit c9b3a72b67
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -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