2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, kernel }:
|
2015-11-09 14:12:18 +00:00
|
|
|
|
|
|
|
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)" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-11-09 14:12:18 +00:00
|
|
|
description = "Set the energy versus performance policy preference bias on recent X86 processors";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.kernel.org/";
|
2015-11-09 14:12:18 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ]; # x86-specific
|
|
|
|
};
|
|
|
|
}
|