Subject: [PATCH 2/4] gnu: hplip: Enable networking.

From: Lukas Gradl <[email-masked]>
Date: Wed, 26 Feb 2025 12:25:55 +0000

* gnu/packages/cups.scm (hplip): Enable networking.
[arguments] <#:configure-flags>: Remove flag "--disable-network-build".
[inputs]: Add net-snmp, openssl, and avahi.

Change-Id: Ibd95a9786c7bea5b45d0fcfa6ab81eca47ca82a0
---
 gnu/packages/cups.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/cups.scm b/gnu/packages/cups.scm
index 09881fc1b8b..b318915065c 100644
--- a/gnu/packages/cups.scm
+++ b/gnu/packages/cups.scm
@@ -9,6 +9,7 @@
 ;;; Copyright © 2020 Marius Bakke <[email-masked]>
 ;;; Copyright © 2021, 2023, 2024 Maxim Cournoyer <[email-masked]>
 ;;; Copyright © 2023 Zheng Junjie <[email-masked]>
+;;; Copyright © 2025 Lukas Gradl <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -42,6 +43,7 @@ (define-module (gnu packages cups)
   #:use-module (gnu packages image)
   #:use-module (gnu packages libusb)
   #:use-module (gnu packages linux)
+  #:use-module (gnu packages networking)
   #:use-module (gnu packages pdf)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages photo)
@@ -579,7 +581,6 @@ (define-public hplip
                   ((guix build python-build-system) #:prefix python:))
       #:configure-flags
       #~(list "--disable-imageProcessor-build"
-              "--disable-network-build"
               (string-append "--prefix=" #$output)
               (string-append "--sysconfdir=" #$output "/etc")
               (string-append "LDFLAGS=-Wl,-rpath=" #$output "/lib")
@@ -690,6 +691,9 @@ (define-public hplip
            python-pyqt
            python-wrapper
            sane-backends-minimal
+           net-snmp
+           openssl
+           avahi
            zlib))
     (home-page "https://developers.hp.com/hp-linux-imaging-and-printing")
     (synopsis "HP printer drivers")
-- 
2.47.1