mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
linuxPackages*.intel-speed-select (5.3+)
This commit is contained in:
parent
046ea6d08f
commit
08466b3467
2 changed files with 22 additions and 0 deletions
20
pkgs/os-specific/linux/intel-speed-select/default.nix
Normal file
20
pkgs/os-specific/linux/intel-speed-select/default.nix
Normal 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
|
||||
};
|
||||
}
|
|
@ -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 {};
|
||||
|
|
Loading…
Reference in a new issue