summary refs log tree commit diff
path: root/pkgs/os-specific/linux/turbostat/default.nix
blob: 10074f490b80effe15df144d8373332a9cdb58a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ stdenv, kernel }:

stdenv.mkDerivation {
  pname = "turbostat";
  inherit (kernel) src version;

  makeFlags = [ "PREFIX=${placeholder "out"}" ];

  postPatch = ''
    cd tools/power/x86/turbostat
  '';

  meta = with stdenv.lib; {
    description = "Report processor frequency and idle statistics";
    homepage = https://www.kernel.org/;
    license = licenses.gpl2;
    platforms = [ "i686-linux" "x86_64-linux" ]; # x86-specific
  };
}