Merge pull request #309042 from chewblacka/fix-fastfetch

fastfetch: 2.11.0 -> 2.11.3
This commit is contained in:
Weijia Wang 2024-05-04 19:24:27 +02:00 committed by GitHub
commit 6a4bdc036d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,6 +11,7 @@
, hwdata
, imagemagick_light
, libXrandr
, libdrm
, libglvnd
, libpulseaudio
, libselinux
@ -46,13 +47,13 @@ let
in
stdenv'.mkDerivation (finalAttrs: {
pname = "fastfetch";
version = "2.11.0";
version = "2.11.3";
src = fetchFromGitHub {
owner = "fastfetch-cli";
repo = "fastfetch";
rev = finalAttrs.version;
hash = "sha256-/j0dRnApP5PQV4qVkqM6WlFdSZHlBTheaoWXSd2YP5k=";
hash = "sha256-kKtJvGnPncosmwjfTKa14G5jQiSkzkURBATvBmavdys=";
};
outputs = [ "out" "man" ];
@ -77,6 +78,7 @@ stdenv'.mkDerivation (finalAttrs: {
ddcutil
glib
hwdata
libdrm
libpulseaudio
libselinux
libsepol
@ -132,6 +134,9 @@ stdenv'.mkDerivation (finalAttrs: {
(lib.cmakeBool "ENABLE_XCB_RANDR" x11Support)
(lib.cmakeBool "ENABLE_XFCONF" (x11Support && (!stdenv.isDarwin)))
(lib.cmakeBool "ENABLE_XRANDR" x11Support)
] ++ lib.optionals stdenv.isLinux [
(lib.cmakeOptionType "filepath" "CUSTOM_PCI_IDS_PATH" "${hwdata}/share/hwdata/pci.ids")
(lib.cmakeOptionType "filepath" "CUSTOM_AMDGPU_IDS_PATH" "${libdrm}/share/libdrm/amdgpu.ids")
];
postInstall = ''