From 4130abfe1295836a5971caa5a92434f8459e52df Mon Sep 17 00:00:00 2001 From: Reed Date: Fri, 16 Apr 2021 10:06:29 -0400 Subject: [PATCH] neofetch: wrap with pciutils --- pkgs/tools/misc/neofetch/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/misc/neofetch/default.nix b/pkgs/tools/misc/neofetch/default.nix index 1826d6846d4..30fd40a1080 100644 --- a/pkgs/tools/misc/neofetch/default.nix +++ b/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"