diff options
author | Nikolay Amiantov <ab@fmap.me> | 2015-11-09 17:12:18 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2015-11-09 17:29:48 +0300 |
commit | 265718c9854957a5f724416429a4a208e33f7726 (patch) | |
tree | eafd0e3591dba61e7ab0044412a35f8d92101525 /pkgs/os-specific/linux/x86_energy_perf_policy | |
parent | 2a0f9d40ff1aecd1713871349d5723547aeab1e4 (diff) |
x86_enegry_perf_policy: init at kernel versions
Diffstat (limited to 'pkgs/os-specific/linux/x86_energy_perf_policy')
-rw-r--r-- | pkgs/os-specific/linux/x86_energy_perf_policy/default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/x86_energy_perf_policy/default.nix b/pkgs/os-specific/linux/x86_energy_perf_policy/default.nix new file mode 100644 index 0000000000000..cca9dc09e93e9 --- /dev/null +++ b/pkgs/os-specific/linux/x86_energy_perf_policy/default.nix @@ -0,0 +1,25 @@ +{ stdenv, kernel }: + +stdenv.mkDerivation { + name = "x86_energy_perf_policy-${kernel.version}"; + + src = kernel.src; + + postPatch = '' + cd tools/power/x86/x86_energy_perf_policy + sed -i 's,/usr,,g' Makefile + ''; + + preInstall = '' + mkdir -p $out/bin $out/share/man/man8 + ''; + + makeFlags = [ "DESTDIR=$(out)" ]; + + meta = with stdenv.lib; { + description = "Set the energy versus performance policy preference bias on recent X86 processors"; + homepage = https://www.kernel.org.org/; + license = licenses.gpl2; + platforms = [ "i686-linux" "x86_64-linux" ]; # x86-specific + }; +} |