diff mbox series

[bug#71968,v7,2/3] gnu: fastfetch: Update to 2.30.1.

Message ID 55fe752934bfe8a7ec52a1c9d31f6e7c3985e27d.1732090301.git.dariqq@posteo.net
State New
Headers show
Series fastfetch: Unbundle yyjson, update and package improvements | expand

Commit Message

Dariqq Nov. 20, 2024, 8:32 a.m. UTC
* gnu/packages/admin.scm (fastfetch): Update to 2.30.1.
[origin]: Add snippet to remove third party code.
[#:configure-flags]: Disable bundled yyjson, enable tests and skip installing license.
[native-inputs]: Add python-minimal.
[inputs]: Add yyjson.

Change-Id: I52d5cf244726bf4362f658f818094a483e3b3d01
---
 gnu/packages/admin.scm | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 9c765b51a9..78c6e904b8 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -4307,7 +4307,7 @@  (define-public pfetch
 (define-public fastfetch
   (package
     (name "fastfetch")
-    (version "2.16.0")
+    (version "2.30.1")
     (source
      (origin
        (method git-fetch)
@@ -4316,17 +4316,25 @@  (define-public fastfetch
              (commit version)))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "112dvfx7gvp6n20i1lkd0jbh897jf7bxjxq96bj4099j3x313y3m"))))
+        (base32 "0q4q7pc28iwa34wq9crh3k5kdlzivjxlkwyin6k4vv7282qnpphs"))
+       (modules '((guix build utils)))
+       (snippet '(begin
+                   (delete-file-recursively "src/3rdparty")))))
     (build-system cmake-build-system)
+    (arguments
+     (list
+      #:configure-flags #~(list "-DENABLE_SYSTEM_YYJSON=ON"
+                                "-DBUILD_TESTS=ON"
+                                "-DINSTALL_LICENSE=OFF")))
     (inputs (list dbus
                   glib
                   imagemagick
                   libxcb
                   mesa
                   wayland
+                  yyjson
                   zlib)) ;for imagemagick and an #ifdef
-    (native-inputs (list pkg-config))
-    (arguments (list #:tests? #f)) ; no test target
+    (native-inputs (list pkg-config python-minimal))
     (home-page "https://github.com/fastfetch-cli/fastfetch")
     (synopsis "Display system information in a stylized manner")
     (description