[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
- branch master updated (39c0a3f -> 41dfe40), guix-commits, 2019/03/15
- 01/08: build-system/glib-or-gtk: Support #:disallowed-references., guix-commits, 2019/03/15
- 02/08: gnu: gnome-shell: Remove references to Inkscape and more., guix-commits, 2019/03/15
- 03/08: gnu: hplip: Remove pre-built executable from the source., guix-commits, 2019/03/15
- 04/08: gnu: hplip: Do not keep reference to GCC., guix-commits, 2019/03/15
- 08/08: pack: Construct inferior package names correctly., guix-commits, 2019/03/15
- 05/08: gnu: hplip-minimal: Remove dependency on Python & co.,
guix-commits <=
- 07/08: services: mpd: add more configuration options, guix-commits, 2019/03/15
- 06/08: pack: "-RR" produces PRoot-enabled relocatable binaries., guix-commits, 2019/03/15