Subject: [PATCH kde-team 23/63] gnu: Add networkmanager-qt-6.

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

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

Change-Id: I7e080b21bae5cbdcbe5dc8ae0e967c32f519123a
---
 gnu/packages/kde-frameworks.scm | 35 +++++++++++++++++++++++++++------
 1 file changed, 29 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index 8eb3e138e4..a5adba4bdf 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -1737,10 +1737,10 @@ (define-public modemmanager-qt
 messages.")
     (license license:lgpl2.1+)))
 
-(define-public networkmanager-qt
+(define-public networkmanager-qt-6
   (package
     (name "networkmanager-qt")
-    (version "5.114.0")
+    (version "6.1.0")
     (source (origin
               (method url-fetch)
               (uri (string-append
@@ -1749,16 +1749,16 @@ (define-public networkmanager-qt
                     name "-" version ".tar.xz"))
               (sha256
                (base32
-                "10anjsnrzawrfjlznjvvl2sbxrajl2ddnq2kgl314b5dk7z3yk4n"))))
+                "00nkmdi9pw5y7sxjh1na6vgy9f8x7hl7whf7z3sczbw9z2spjjbf"))))
     (build-system cmake-build-system)
     (native-inputs
      (list extra-cmake-modules dbus pkg-config))
+    (inputs (list qtbase))
     (propagated-inputs
      ;; Headers contain #include <NetworkManager.h> and
      ;;                 #include <libnm/NetworkManager.h>
-     (list network-manager))
-    (inputs
-     (list qtbase-5))
+     (list network-manager
+           qtdeclarative))
     (arguments
      (list #:phases #~(modify-phases %standard-phases
                         (replace 'check
@@ -1774,6 +1774,29 @@ (define-public networkmanager-qt
 which are used in DBus communication.")
     (license license:lgpl2.1+)))
 
+(define-public networkmanager-qt
+  (package
+    (inherit networkmanager-qt-6)
+    (name "networkmanager-qt")
+    (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
+                "10anjsnrzawrfjlznjvvl2sbxrajl2ddnq2kgl314b5dk7z3yk4n"))))
+    (native-inputs
+     (list extra-cmake-modules dbus pkg-config))
+    (propagated-inputs
+     ;; Headers contain #include <NetworkManager.h> and
+     ;;                 #include <libnm/NetworkManager.h>
+     (list network-manager))
+    (inputs
+     (list qtbase-5))))
+
 (define-public oxygen-icons
   (package
     (name "oxygen-icons")
-- 
2.41.0