Subject: [PATCH kde-team 25/63] gnu: Add prison-6.

From: Zheng Junjie <[email-masked]>
Date: Mon, 15 Apr 2024 20:47:02 +0800

* gnu/packages/kde-frameworks.scm (prison-6): New variable.
(prison): Inherit above.

Change-Id: I5735d108fe8572b94cdc5606f74ccb67ed6e13cb
---
 gnu/packages/kde-frameworks.scm | 26 ++++++++++++++++++++++----
 1 file changed, 22 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index 600fa69e3f..abeac4b30b 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -1840,10 +1840,10 @@ (define-public oxygen-icons
      (list qtbase-5))
     (properties '((upstream-name . "oxygen-icons5")))))
 
-(define-public prison
+(define-public prison-6
   (package
     (name "prison")
-    (version "5.114.0")
+    (version "6.1.0")
     (source
      (origin
        (method url-fetch)
@@ -1851,18 +1851,36 @@ (define-public prison
                            (version-major+minor version) "/"
                            name "-" version ".tar.xz"))
        (sha256
-        (base32 "1wbr1lryxmrx65ilq1bhqsdhhikrih977nhpb02fq0cqnvv7v9i7"))))
+        (base32 "1x0y4vsprdlpnfg7g57qcj2j15nv7ga518fcygkm66dgd43p220p"))))
     (build-system cmake-build-system)
     (native-inputs
      (list extra-cmake-modules))
     (inputs
-     (list libdmtx qrencode qtbase-5)) ;; TODO: rethink: nix propagates this
+     (list libdmtx zxing-cpp qrencode qtbase qtdeclarative qtmultimedia))
     (home-page "https://api.kde.org/frameworks/prison/html/index.html")
     (synopsis "Barcode generation abstraction layer")
     (description "Prison is a Qt-based barcode abstraction layer/library and
 provides uniform access to generation of barcodes with data.")
     (license license:lgpl2.1+)))
 
+(define-public prison
+  (package
+    (inherit prison-6)
+    (name "prison")
+    (version "5.114.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://kde/stable/frameworks/"
+                           (version-major+minor version) "/"
+                           name "-" version ".tar.xz"))
+       (sha256
+        (base32 "1wbr1lryxmrx65ilq1bhqsdhhikrih977nhpb02fq0cqnvv7v9i7"))))
+    (native-inputs
+     (list extra-cmake-modules))
+    (inputs
+     (list libdmtx qrencode qtbase-5))))  ;; TODO: rethink: nix propagates this
+
 (define-public pulseaudio-qt
   (package
     (name "pulseaudio-qt")
-- 
2.41.0