Skip to content

Commit

Permalink
Merge pull request #119621 from reedrw/neofetch-lscpi
Browse files Browse the repository at this point in the history
neofetch: wrap with pciutils
  • Loading branch information
SuperSandro2000 committed Apr 16, 2021
2 parents 49c7d9e + 4130abf commit a8f6369
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkgs/tools/misc/neofetch/default.nix
@@ -1,4 +1,4 @@
{ lib, stdenvNoCC, fetchFromGitHub, bash }:
{ lib, stdenvNoCC, fetchFromGitHub, bash, makeWrapper, pciutils }:

stdenvNoCC.mkDerivation rec {
pname = "neofetch";
Expand All @@ -13,10 +13,16 @@ stdenvNoCC.mkDerivation rec {

strictDeps = true;
buildInputs = [ bash ];
nativeBuildInputs = [ makeWrapper ];
postPatch = ''
patchShebangs --host neofetch
'';

postInstall = ''
wrapProgram $out/bin/neofetch \
--prefix PATH : ${lib.makeBinPath [ pciutils ]}
'';

makeFlags = [
"PREFIX=${placeholder "out"}"
"SYSCONFDIR=${placeholder "out"}/etc"
Expand Down

0 comments on commit a8f6369

Please sign in to comment.