summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Gradl <lgradl@posteo.net>2025-02-26 12:25:56 +0000
committerDanny Milosavljevic <dannym@friendly-machines.com>2025-03-30 23:20:35 +0200
commit36d8ab1c7b564a9e5e823c73bca68d590899ce59 (patch)
treebadcc3f551e4563a890d9a5a37201bd1045dda7b
parent8f6056faf5bc4e637883e08d43722f4b8bfd949d (diff)
gnu: hplip-minimal: Disable networking.
* gnu/packages/cups.scm (hplip-minimal): Disable networking. [arguments] <#:configure-flags>: Add "--disable-network-build". The "lite build" of hplip is incompatible with the "network build", so disable the latter explicitly. [inputs]: Rephrase the inputs as a positive list and remove net-snmp, openssl, and avahi (inherited from hplip). Change-Id: I954b665fe5bdeae2a2fab79c1e2cbfa8ac01f58b Signed-off-by: Danny Milosavljevic <dannym@friendly-machines.com>
-rw-r--r--gnu/packages/cups.scm19
1 files changed, 13 insertions, 6 deletions
diff --git a/gnu/packages/cups.scm b/gnu/packages/cups.scm
index b318915065..41c3f0af45 100644
--- a/gnu/packages/cups.scm
+++ b/gnu/packages/cups.scm
@@ -713,16 +713,23 @@ should only be used as part of the Guix cups-pk-helper service.")
;; 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)))
+ #~(cons* "--enable-lite-build"
+ "--disable-network-build"
+ ;; The flag "--enable-lite-build" is incompatible with
+ ;; "--enable-network-build" inherited from hplip, so we need
+ ;; to override it with "--disable-network-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)))
+ (inputs
+ (list cups-minimal
+ dbus
+ libjpeg-turbo
+ libusb
+ sane-backends-minimal
+ zlib))
(synopsis "GUI-less version of hplip")))
(define-public foomatic-filters