lilyp pushed a commit to branch gnome-team
in repository guix.

commit 50f7686f084edd7705b88b60767e9264aa687128
Author: Nicolas Graves <[email protected]>
AuthorDate: Wed Jan 8 07:11:38 2025 +0100

    gnu: Add zbar-minimal.
    
    * gnu/packages/aidc.scm (zbar-minimal): New variable.
    
    Signed-off-by: Liliana Marie Prikler <[email protected]>
---
 gnu/packages/aidc.scm | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/gnu/packages/aidc.scm b/gnu/packages/aidc.scm
index cf18801aec..2ba6e88412 100644
--- a/gnu/packages/aidc.scm
+++ b/gnu/packages/aidc.scm
@@ -231,6 +231,20 @@ Python as well as GUI widgets for GTK and Qt.")
     (home-page "https://github.com/mchehab/zbar";)
     (license license:lgpl2.1+)))
 
+(define-public zbar-minimal
+  (package/inherit zbar
+    (name "zbar-minimal")
+    (build-system gnu-build-system)
+    (arguments
+     (substitute-keyword-arguments (package-arguments zbar)
+       ((#:configure-flags flags)
+        #~(cons* "--with-gtk=no" (delete "--with-gtk=auto" #$flags)))
+       ((#:disallowed-references _ '())
+        (list qtbase gtk+))))
+    (propagated-inputs
+     (modify-inputs (package-propagated-inputs zbar)
+       (delete "gtk+")))))
+
 (define-public qrcodegen-cpp
   (package
     (name "qrcodegen-cpp")

Reply via email to