mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-30 00:50:17 +02:00
Merge pull request #119621 from reedrw/neofetch-lscpi
neofetch: wrap with pciutils
This commit is contained in:
commit
a8f6369dda
|
@ -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…
Reference in a new issue