summary refs log tree commit diff
path: root/gnu/packages/kde-frameworks.scm
diff options
context:
space:
mode:
authorSughosha <sughosha@disroot.org>2023-08-12 23:05:49 +0200
committer宋文武 <iyzsong@member.fsf.org>2023-08-13 12:41:16 +0800
commit89a5785acd516e0637ca3ef670f2da62dc8cd08b (patch)
tree970665e3dfeb7fcf04e382df3e804c22bcc4e705 /gnu/packages/kde-frameworks.scm
parenta900ccf6a68ed19769a2ed08edb0ac703daa4aa6 (diff)
downloadguix-89a5785acd516e0637ca3ef670f2da62dc8cd08b.tar.gz
gnu: Add kcolorpicker.
* gnu/packages/kde-frameworks.scm (kcolorpicker): New variable.

Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
Diffstat (limited to 'gnu/packages/kde-frameworks.scm')
-rw-r--r--gnu/packages/kde-frameworks.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index 445167279b..5bf09289b5 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -33,6 +33,7 @@
   #:use-module (guix build-system python)
   #:use-module (guix build-system qt)
   #:use-module (guix download)
+  #:use-module (guix git-download)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix utils)
@@ -557,6 +558,32 @@ Internet).")
                    license:lgpl2.1 license:lgpl2.1+ license:expat
                    license:lgpl3+ license:mpl1.1))))
 
+(define-public kcolorpicker
+  (package
+    (name "kcolorpicker")
+    (version "0.2.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/ksnip/kColorPicker")
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "1aw41mj0hxin2h3cldiiv7ivq5qv97l0ww42yr7j8hmkzj7qq6ba"))))
+    (build-system qt-build-system)
+    (propagated-inputs (list qtbase-5))
+    (arguments
+     (list #:configure-flags #~'("-DBUILD_TESTS=ON")))
+    (home-page "https://github.com/ksnip/kColorPicker")
+    (synopsis "Color Picker with popup menu")
+    (description
+     "@code{KColorPicker} is a subclass of @code{QToolButton} with color popup
+menu which lets you select a color.  The popup features a color dialog button
+which can be used to add custom colors to the popup menu.")
+    (license license:lgpl3+)))
+
 (define-public kconfig
   (package
     (name "kconfig")