summary refs log blame commit diff
path: root/pkgs/os-specific/linux/turbostat/default.nix
blob: fb1bcf582fbaec591c20a386f6ac6327d5f39102 (plain) (tree)
1
2
3
4
5
6
7
                                




                               
                           





                                                
                    
                                                                   
                                         




                                                               
{ lib, stdenv, kernel, libcap }:

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

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

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

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