mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
23 lines
608 B
Nix
23 lines
608 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";
|
|
mainProgram = "intel-speed-select";
|
|
homepage = "https://www.kernel.org/";
|
|
license = licenses.gpl2Only;
|
|
platforms = [ "i686-linux" "x86_64-linux" ]; # x86-specific
|
|
broken = kernel.kernelAtLeast "5.18";
|
|
};
|
|
}
|