Files
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

30 lines
532 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 = {
description = "Report processor frequency and idle statistics";
mainProgram = "turbostat";
homepage = "https://www.kernel.org/";
license = lib.licenses.gpl2Only;
platforms = [
"i686-linux"
"x86_64-linux"
]; # x86-specific
};
}