powertop: change substitute for xset

This commit is contained in:
Sebastian Sellmeier 2023-04-16 14:38:02 +02:00
parent 85b081528b
commit 670a632529
No known key found for this signature in database
GPG Key ID: 51E2BE0CCC826F98

View File

@ -12,6 +12,7 @@
, nix-update-script
, testers
, powertop
, xorg
}:
stdenv.mkDerivation rec {
@ -32,7 +33,7 @@ stdenv.mkDerivation rec {
postPatch = ''
substituteInPlace src/main.cpp --replace "/sbin/modprobe" "modprobe"
substituteInPlace src/calibrate/calibrate.cpp --replace "/usr/bin/xset" "xset"
substituteInPlace src/calibrate/calibrate.cpp --replace "/usr/bin/xset" "${lib.getExe xorg.xset}"
substituteInPlace src/tuning/bluetooth.cpp --replace "/usr/bin/hcitool" "hcitool"
'';