mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
22 lines
481 B
Nix
22 lines
481 B
Nix
{ 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 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
|
|
};
|
|
}
|
|
|