587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
22 lines
510 B
Nix
22 lines
510 B
Nix
{ 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";
|
|
mainProgram = "turbostat";
|
|
homepage = "https://www.kernel.org/";
|
|
license = licenses.gpl2;
|
|
platforms = [ "i686-linux" "x86_64-linux" ]; # x86-specific
|
|
};
|
|
}
|
|
|