guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

05/08: gnu: hplip-minimal: Remove dependency on Python & co.


From: guix-commits
Subject: 05/08: gnu: hplip-minimal: Remove dependency on Python & co.
Date: Fri, 15 Mar 2019 18:29:38 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit c9b3a72b6792c8195b0cdd8e5d7809db29419c7d
Author: Ludovic Courtès <address@hidden>
Date:   Fri Mar 15 22:36:46 2019 +0100

    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.
---
 gnu/packages/cups.scm | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/cups.scm b/gnu/packages/cups.scm
index b943444..b77fb20 100644
--- a/gnu/packages/cups.scm
+++ b/gnu/packages/cups.scm
@@ -51,7 +51,8 @@
   #: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 @@ should only be used as part of the Guix cups-pk-helper 
service.")
     (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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]