Merge pull request #128137 from bbigras/neofetch

neofetch: add options for optional dependency
This commit is contained in:
Sandro 2021-06-26 18:49:28 +02:00 committed by GitHub
commit fcc061ae7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,6 @@
{ lib, stdenvNoCC, fetchFromGitHub, bash, makeWrapper, pciutils, ueberzug }:
{ lib, stdenvNoCC, fetchFromGitHub, bash, makeWrapper, pciutils
, x11Support ? true, ueberzug
}:
stdenvNoCC.mkDerivation rec {
pname = "neofetch";
@ -20,7 +22,7 @@ stdenvNoCC.mkDerivation rec {
postInstall = ''
wrapProgram $out/bin/neofetch \
--prefix PATH : ${lib.makeBinPath [ pciutils ueberzug ]}
--prefix PATH : ${lib.makeBinPath ([ pciutils ] ++ lib.optional x11Support ueberzug) }
'';
makeFlags = [