a5adf1ddd8
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
20 lines
522 B
Nix
20 lines
522 B
Nix
{ lib, stdenv, kernel }:
|
|
|
|
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
|
|
'';
|
|
|
|
meta = with lib; {
|
|
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
|
|
};
|
|
}
|