1{ lib, stdenv, kernel }:
2
3stdenv.mkDerivation {
4 pname = "intel-speed-select";
5 inherit (kernel) src version;
6
7 makeFlags = [ "bindir=${placeholder "out"}/bin" ];
8
9 postPatch = ''
10 cd tools/power/x86/intel-speed-select
11 sed -i 's,/usr,,g' Makefile
12 '';
13
14 meta = with lib; {
15 description = "Tool to enumerate and control the Intel Speed Select Technology features";
16 homepage = "https://www.kernel.org/";
17 license = licenses.gpl2;
18 platforms = [ "i686-linux" "x86_64-linux" ]; # x86-specific
19 broken = kernel.kernelAtLeast "5.18";
20 };
21}