gnu: Add fastfetch-minimal.

* gnu/packages/admin.scm (fastfetch-minimal): New variable.
(fastfetch): inherit from fastfetch-minimal.

Change-Id: Ie1b39699e5202a7a29c606f9e9ba08fb769eadd0
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Yelninei 2025-08-29 15:13:29 +00:00 committed by Sharlatan Hellseher
parent 355e47a9ec
commit 452dacd7e8
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -4636,9 +4636,9 @@ everyone's screenshots nowadays.")
information tool.")
(license license:expat))))
(define-public fastfetch
(define-public fastfetch-minimal
(package
(name "fastfetch")
(name "fastfetch-minimal")
(version "2.51.1")
(source
(origin
@ -4658,25 +4658,8 @@ information tool.")
#:configure-flags #~(list "-DENABLE_SYSTEM_YYJSON=ON"
"-DBUILD_FLASHFETCH=OFF"
"-DBUILD_TESTS=ON"
"-DINSTALL_LICENSE=OFF"
"-DBINARY_LINK_TYPE=dynamic"
"-DENABLE_DIRECTX_HEADERS=OFF"
(string-append "-DCUSTOM_PCI_IDS_PATH="
#$(this-package-input "hwdata")
"/share/hwdata/pci.ids")
(string-append "-DCUSTOM_AMDGPU_IDS_PATH="
#$(this-package-input "libdrm")
"/share/libdrm/amdgpu.ids"))))
(inputs (list dbus
glib
hwdata
imagemagick
libdrm
libxcb
mesa
wayland
yyjson
zlib)) ;for imagemagick and an #ifdef
"-DINSTALL_LICENSE=OFF")))
(inputs (list yyjson))
(native-inputs (list pkg-config python-minimal))
(home-page "https://github.com/fastfetch-cli/fastfetch")
(synopsis "Display system information in a stylized manner")
@ -4686,6 +4669,34 @@ a stylized way. Fastfetch displays this information next to a logo of the
system distribution, akin to many similar tools.")
(license license:expat)))
(define-public fastfetch
(package
(inherit fastfetch-minimal)
(name "fastfetch")
(arguments
(substitute-keyword-arguments (package-arguments fastfetch-minimal)
((#:configure-flags flags #~'())
#~(append #$flags
(list "-DBINARY_LINK_TYPE=dynamic"
"-DENABLE_DIRECTX_HEADERS=OFF"
(string-append "-DCUSTOM_PCI_IDS_PATH="
#$(this-package-input "hwdata")
"/share/hwdata/pci.ids")
(string-append "-DCUSTOM_AMDGPU_IDS_PATH="
#$(this-package-input "libdrm")
"/share/libdrm/amdgpu.ids"))))))
(inputs
(modify-inputs (package-inputs fastfetch-minimal)
(append dbus
glib
hwdata
imagemagick
libdrm
libxcb
mesa
wayland
zlib))))) ;for imagemagick and an #ifdef
(define-public nnn
(package
(name "nnn")