mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-21 20:49:52 +03:00
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:
parent
7c339ff10e
commit
88e43eb39b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user