powertop: Patch out path to /sbin/modprobe (close #8702)
The modprobe call is made via system(), so an absolute path is not
needed if modprobe is in PATH. Which it is by default at least in
NixOS and Arch.
Fixes #5424.
commit88e43eb39bcda5f8fdf41d566bc6799596177cd0
authorTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
dateWed 8 Jul 2015, 15:10 (11 years ago)
parent7c339ff
pkgs/os-specific/linux/powertop/default.nix+4
@@ -10,6 +10,10 @@ stdenv.mkDerivation rec {
1010
1111 buildInputs = [ gettext libnl ncurses pciutils pkgconfig zlib ];
1212
13+ patchPhase = ''
14+ substituteInPlace src/main.cpp --replace "/sbin/modprobe" "modprobe"
15+ '';
16+
1317 meta = {
1418 description = "Analyze power consumption on Intel-based laptops";
1519 license = stdenv.lib.licenses.gpl2;