summary refs log tree commit diff
path: root/pkgs/os-specific/linux/intel-speed-select/default.nix
blob: 89b4feff7a502ef7cc296f63f2f489e9e2d1b5aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ 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
  };
}