nixpkgs/pkgs/os-specific/linux/turbostat/default.nix
2020-04-10 17:54:53 +01:00

21 lines
445 B
Nix

{ 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
};
}