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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
538 B
Nix
Raw Normal View History

{
lib,
stdenv,
kernel,
libcap,
}:
2019-09-15 03:47:35 +00:00
stdenv.mkDerivation {
pname = "turbostat";
inherit (kernel) src version;
2020-07-08 03:58:27 +00:00
buildInputs = [ libcap ];
2019-09-15 03:47:35 +00:00
makeFlags = [ "PREFIX=${placeholder "out"}" ];
postPatch = ''
cd tools/power/x86/turbostat
'';
meta = with lib; {
2019-09-15 03:47:35 +00:00
description = "Report processor frequency and idle statistics";
mainProgram = "turbostat";
homepage = "https://www.kernel.org/";
2024-05-26 12:16:07 +00:00
license = licenses.gpl2Only;
platforms = [
"i686-linux"
"x86_64-linux"
]; # x86-specific
2019-09-15 03:47:35 +00:00
};
}