2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, kernel }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "intel-speed-select";
|
|
|
|
inherit (kernel) src version;
|
|
|
|
|
|
|
|
makeFlags = [ "bindir=${placeholder "out"}/bin" ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
cd tools/power/x86/intel-speed-select
|
|
|
|
sed -i 's,/usr,,g' Makefile
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Tool to enumerate and control the Intel Speed Select Technology features";
|
|
|
|
homepage = "https://www.kernel.org/";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ]; # x86-specific
|
|
|
|
};
|
|
|
|
}
|