linuxPackages*.intel-speed-select (5.3+)

This commit is contained in:
Will Dietz 2019-09-14 22:44:55 -05:00
parent 046ea6d08f
commit 08466b3467
No known key found for this signature in database
GPG key ID: EBB0EA4124809D02
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,20 @@
{ 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 stdenv.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
};
}

View file

@ -15795,6 +15795,8 @@ in
e1000e = if stdenv.lib.versionOlder kernel.version "4.10" then callPackage ../os-specific/linux/e1000e {} else null;
intel-speed-select = if stdenv.lib.versionAtLeast kernel.version "5.3" then callPackage ../os-specific/linux/intel-speed-select { } else null;
ixgbevf = callPackage ../os-specific/linux/ixgbevf {};
it87 = callPackage ../os-specific/linux/it87 {};