nixpkgs/pkgs/os-specific/linux/turbostat/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

23 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
};
}