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.
This commit is contained in:
Tuomas Tynkkynen 2015-07-08 15:10:33 +03:00 committed by Vladimír Čunát
parent 7c339ff10e
commit 88e43eb39b

View File

@ -10,6 +10,10 @@ stdenv.mkDerivation rec {
buildInputs = [ gettext libnl ncurses pciutils pkgconfig zlib ];
patchPhase = ''
substituteInPlace src/main.cpp --replace "/sbin/modprobe" "modprobe"
'';
meta = {
description = "Analyze power consumption on Intel-based laptops";
license = stdenv.lib.licenses.gpl2;