depot/third_party/nixpkgs/pkgs/os-specific/linux/intel-speed-select/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

22 lines
604 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.gpl2;
platforms = [ "i686-linux" "x86_64-linux" ]; # x86-specific
broken = kernel.kernelAtLeast "5.18";
};
}