guix_mirror_bot pushed a commit to branch master
in repository guix.

commit e22efb74ed24aadc2f762ccd863d5e4879927344
Author: Nicolas Graves <ngra...@ngraves.fr>
AuthorDate: Sat Jun 14 22:46:36 2025 +0200

    gnu: gpick: Improve style.
    
    * gnu/packages/image.scm (gpick): Improve style.
      [source]: Run guix style.
      [native-inputs, inputs]: Improve style, reorder fields.
      [arguments]: Improve style, rewrite using gexps.
    
    Change-Id: I200251fd3b7b6cebc24e3fa75a6525cc4dc6de1d
    Signed-off-by: Sharlatan Hellseher <sharlata...@gmail.com>
---
 gnu/packages/image.scm | 51 +++++++++++++++++++++++---------------------------
 1 file changed, 23 insertions(+), 28 deletions(-)

diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index c19b7a0900..1b00e01af3 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -2053,36 +2053,31 @@ custom formats for representing color values..")
   (package
     (name "gpick")
     (version "0.2.6")
-    (source (origin
-              (method git-fetch)
-              (uri (git-reference
-                    (url "https://github.com/thezbyg/gpick";)
-                    (commit (string-append name "-" version))))
-              (file-name (git-file-name name version))
-              (sha256
-               (base32
-                "0nl89gca5nmbyycv5rl5bm6k7facapdk4pab9pl949aa3cjw9bk7"))))
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/thezbyg/gpick";)
+             (commit (string-append name "-" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0nl89gca5nmbyycv5rl5bm6k7facapdk4pab9pl949aa3cjw9bk7"))))
     (build-system scons-build-system)
-    (native-inputs
-     `(("boost" ,boost)
-       ("gettext" ,gettext-minimal)
-       ("pkg-config" ,pkg-config)
-       ("ragel" ,ragel)))
-    (inputs
-     `(("expat" ,expat)
-       ("gtk2" ,gtk+-2)
-       ("lua" ,lua-5.2)))
     (arguments
-     `(#:tests? #f
-       #:scons ,scons-python2
-       #:scons-flags (list (string-append "DESTDIR=" %output))
-       #:phases
-       (modify-phases %standard-phases
-         (add-before 'build 'fix-lua-reference
-           (lambda _
-             (substitute* "SConscript"
-               (("lua5.2") "lua-5.2"))
-             #t)))))
+     (list
+      #:tests? #f
+      #:scons scons-python2
+      #:scons-flags
+      #~(list (string-append "DESTDIR=" %output))
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'build 'fix-lua-reference
+            (lambda _
+              (substitute* "SConscript"
+                (("lua5.2")
+                 "lua-5.2")))))))
+    (native-inputs (list boost gettext-minimal pkg-config ragel))
+    (inputs (list expat gtk+-2 lua-5.2))
     (home-page "http://www.gpick.org/";)
     (synopsis "Color picker")
     (description "Gpick is an advanced color picker and palette editing tool.")

Reply via email to