Nix: prefix PATH with pciutils

This commit is contained in:
Mihai Fufezan 2024-10-13 20:58:05 +03:00
parent a0d09b1fd6
commit e740e9ab01
Signed by: fufexan
SSH key fingerprint: SHA256:SdnKmEpJrDu1+2UO1QpB/Eg4HKcdDi6n+xSRqFNJVpg

View file

@ -10,7 +10,7 @@
version ? "0", version ? "0",
}: let }: let
inherit (lib.sources) cleanSource cleanSourceWith; inherit (lib.sources) cleanSource cleanSourceWith;
inherit (lib.strings) hasSuffix; inherit (lib.strings) hasSuffix makeBinPath;
in in
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "hyprsysteminfo"; pname = "hyprsysteminfo";
@ -33,12 +33,15 @@ in
buildInputs = [ buildInputs = [
hyprutils hyprutils
kdePackages.kirigami-addons kdePackages.kirigami-addons
pciutils
qt6.qtbase qt6.qtbase
qt6.qtsvg qt6.qtsvg
qt6.qtwayland qt6.qtwayland
]; ];
preFixup = ''
qtWrapperArgs+=(--prefix PATH : "${makeBinPath [pciutils]}")
'';
meta = { meta = {
description = "A tiny qt6/qml application to display information about the running system"; description = "A tiny qt6/qml application to display information about the running system";
homepage = "https://github.com/hyprwm/hyprsysteminfo"; homepage = "https://github.com/hyprwm/hyprsysteminfo";