neofetch: wrap with pciutils
This commit is contained in:
parent
d7ffdde842
commit
4130abfe12
@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenvNoCC, fetchFromGitHub, bash }:
|
{ lib, stdenvNoCC, fetchFromGitHub, bash, makeWrapper, pciutils }:
|
||||||
|
|
||||||
stdenvNoCC.mkDerivation rec {
|
stdenvNoCC.mkDerivation rec {
|
||||||
pname = "neofetch";
|
pname = "neofetch";
|
||||||
@ -13,10 +13,16 @@ stdenvNoCC.mkDerivation rec {
|
|||||||
|
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
buildInputs = [ bash ];
|
buildInputs = [ bash ];
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
patchShebangs --host neofetch
|
patchShebangs --host neofetch
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
wrapProgram $out/bin/neofetch \
|
||||||
|
--prefix PATH : ${lib.makeBinPath [ pciutils ]}
|
||||||
|
'';
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"PREFIX=${placeholder "out"}"
|
"PREFIX=${placeholder "out"}"
|
||||||
"SYSCONFDIR=${placeholder "out"}/etc"
|
"SYSCONFDIR=${placeholder "out"}/etc"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user