neofetch: Fix build on OpenBSD

This commit is contained in:
Artemis Tosini
2025-01-08 15:37:03 -07:00
committed by Audrey Dutcher
parent 66ca9869c7
commit 3fd798e7b8
+4 -2
View File
@@ -5,7 +5,7 @@
bash,
makeWrapper,
pciutils,
x11Support ? true,
x11Support ? !stdenvNoCC.isOpenBSD,
ueberzug,
fetchpatch,
}:
@@ -55,7 +55,9 @@ stdenvNoCC.mkDerivation rec {
postInstall = ''
wrapProgram $out/bin/neofetch \
--prefix PATH : ${lib.makeBinPath ([ pciutils ] ++ lib.optional x11Support ueberzug)}
--prefix PATH : ${
lib.makeBinPath (lib.optional (!stdenvNoCC.isOpenBSD) pciutils ++ lib.optional x11Support ueberzug)
}
'';
makeFlags = [