2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, kernel, libcap }:
|
2019-09-15 04:47:35 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "turbostat";
|
|
|
|
inherit (kernel) src version;
|
|
|
|
|
2020-07-08 04:58:27 +01:00
|
|
|
buildInputs = [ libcap ];
|
2019-09-15 04:47:35 +01:00
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
cd tools/power/x86/turbostat
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-09-15 04:47:35 +01:00
|
|
|
description = "Report processor frequency and idle statistics";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.kernel.org/";
|
2019-09-15 04:47:35 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ]; # x86-specific
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|