diff options
author | Charles Strahan <charles.c.strahan@gmail.com> | 2015-10-15 14:25:43 -0400 |
---|---|---|
committer | Charles Strahan <charles.c.strahan@gmail.com> | 2015-10-15 14:27:09 -0400 |
commit | b1edc7909a116bf48ea95c41c6702941cf62a792 (patch) | |
tree | a7b7351e0185b4fae172aba7bc478be067a0fa72 /pkgs/os-specific/linux/powertop/default.nix | |
parent | 194357ad2036ba723bf8bd66ad250dfb19384c4b (diff) | |
download | nixlib-b1edc7909a116bf48ea95c41c6702941cf62a792.tar nixlib-b1edc7909a116bf48ea95c41c6702941cf62a792.tar.gz nixlib-b1edc7909a116bf48ea95c41c6702941cf62a792.tar.bz2 nixlib-b1edc7909a116bf48ea95c41c6702941cf62a792.tar.lz nixlib-b1edc7909a116bf48ea95c41c6702941cf62a792.tar.xz nixlib-b1edc7909a116bf48ea95c41c6702941cf62a792.tar.zst nixlib-b1edc7909a116bf48ea95c41c6702941cf62a792.zip |
powertop: fix --auto-tune
See https://lists.01.org/pipermail/powertop/2014-December/001727.html
Diffstat (limited to 'pkgs/os-specific/linux/powertop/default.nix')
-rw-r--r-- | pkgs/os-specific/linux/powertop/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/powertop/default.nix b/pkgs/os-specific/linux/powertop/default.nix index 9e32cd70cfb7..82ca746d6a47 100644 --- a/pkgs/os-specific/linux/powertop/default.nix +++ b/pkgs/os-specific/linux/powertop/default.nix @@ -10,7 +10,11 @@ stdenv.mkDerivation rec { buildInputs = [ gettext libnl ncurses pciutils pkgconfig zlib ]; - patchPhase = '' + # Fix --auto-tune bug: + # https://lists.01.org/pipermail/powertop/2014-December/001727.html + patches = [ ./auto-tune.patch ]; + + postPatch = '' substituteInPlace src/main.cpp --replace "/sbin/modprobe" "modprobe" ''; |