depot/third_party/nixpkgs/pkgs/os-specific/linux/turbostat/default.nix
Default email a5adf1ddd8 Project import generated by Copybara.
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
2021-01-15 23:18:51 +01:00

21 lines
479 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";
homepage = "https://www.kernel.org/";
license = licenses.gpl2;
platforms = [ "i686-linux" "x86_64-linux" ]; # x86-specific
};
}