guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/03: gnu: fastfetch: Add more configure flags.


From: guix-commits
Subject: 03/03: gnu: fastfetch: Add more configure flags.
Date: Wed, 15 Jan 2025 16:39:25 -0500 (EST)

sharlatan pushed a commit to branch master
in repository guix.

commit 35d13aab7ebca187343c54b800711bfea02859b9
Author: Dariqq <dariqq@posteo.net>
AuthorDate: Wed Jan 15 20:16:44 2025 +0000

    gnu: fastfetch: Add more configure flags.
    
    Use dynamic linking for dependencies instead of dlopening them at
    runtime which requries a wrapper with LD_LIBRARY_PATH.
    
    Additionally provide custom paths to pci-ids and amdgpu-ids.
    
    * gnu/packages/admin.scm (fastfetch)
    [#:configure-flags]: Enable dynamic linking and disable
    directx-headers. Set custom paths to hwdata and libdrm.
    [inputs]: Add hwdata and libdrm for the custom paths.
    
    Change-Id: I9f86b49f0a116bcee91ca15b6e77cfbb3867e290
    Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
 gnu/packages/admin.scm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 1d532bbc28..85bd7e70e7 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -4470,10 +4470,20 @@ information tool.")
       #:configure-flags #~(list "-DENABLE_SYSTEM_YYJSON=ON"
                                 "-DBUILD_FLASHFETCH=OFF"
                                 "-DBUILD_TESTS=ON"
-                                "-DINSTALL_LICENSE=OFF")))
+                                "-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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]