neofetch: add option for optional dependency
This commit is contained in:
parent
3affea2a73
commit
16dc11399d
|
@ -1,4 +1,6 @@
|
||||||
{ lib, stdenvNoCC, fetchFromGitHub, bash, makeWrapper, pciutils, ueberzug }:
|
{ lib, stdenvNoCC, fetchFromGitHub, bash, makeWrapper, pciutils
|
||||||
|
, x11Support ? true, ueberzug
|
||||||
|
}:
|
||||||
|
|
||||||
stdenvNoCC.mkDerivation rec {
|
stdenvNoCC.mkDerivation rec {
|
||||||
pname = "neofetch";
|
pname = "neofetch";
|
||||||
|
@ -20,7 +22,7 @@ stdenvNoCC.mkDerivation rec {
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/neofetch \
|
wrapProgram $out/bin/neofetch \
|
||||||
--prefix PATH : ${lib.makeBinPath [ pciutils ueberzug ]}
|
--prefix PATH : ${lib.makeBinPath ([ pciutils ] ++ lib.optional x11Support ueberzug) }
|
||||||
'';
|
'';
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
|
|
Loading…
Reference in a new issue