nixpkgs-suyu/pkgs/os-specific/linux/turbostat/default.nix

22 lines
481 B
Nix
Raw Normal View History

2020-07-08 05:58:27 +02:00
{ stdenv, kernel, libcap }:
2019-09-15 05:47:35 +02:00
stdenv.mkDerivation {
pname = "turbostat";
inherit (kernel) src version;
2020-07-08 05:58:27 +02:00
buildInputs = [ libcap ];
2019-09-15 05:47:35 +02:00
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/";
2019-09-15 05:47:35 +02:00
license = licenses.gpl2;
platforms = [ "i686-linux" "x86_64-linux" ]; # x86-specific
};
}