neofetch: wrap with pciutils

wip/yesman
Reed 3 years ago
parent d7ffdde842
commit 4130abfe12
  1. 8
      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";
@ -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"

Loading…
Cancel
Save