depot/third_party/nixpkgs/pkgs/os-specific/linux/intel-speed-select/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

21 lines
564 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
broken = kernel.kernelAtLeast "5.18";
};
}