mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
26 lines
599 B
Nix
26 lines
599 B
Nix
|
{ 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
|
||
|
};
|
||
|
}
|