diff options
author | Will Dietz <w@wdtz.org> | 2019-09-14 22:47:35 -0500 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2019-09-16 09:15:42 -0500 |
commit | bd65f5e4dbf0551212a2121946f3b0db3cfe1b18 (patch) | |
tree | 5ff3b78ec643f4fca434c1517d64f6b46cb63a31 /pkgs/os-specific | |
parent | 046ea6d08fce7bdc6360905adafae793310edfc2 (diff) | |
download | nixpkgs-bd65f5e4dbf0551212a2121946f3b0db3cfe1b18.tar nixpkgs-bd65f5e4dbf0551212a2121946f3b0db3cfe1b18.tar.gz nixpkgs-bd65f5e4dbf0551212a2121946f3b0db3cfe1b18.tar.bz2 nixpkgs-bd65f5e4dbf0551212a2121946f3b0db3cfe1b18.tar.lz nixpkgs-bd65f5e4dbf0551212a2121946f3b0db3cfe1b18.tar.xz nixpkgs-bd65f5e4dbf0551212a2121946f3b0db3cfe1b18.tar.zst nixpkgs-bd65f5e4dbf0551212a2121946f3b0db3cfe1b18.zip |
linuxPackages*.turbostat: init
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r-- | pkgs/os-specific/linux/turbostat/default.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/turbostat/default.nix b/pkgs/os-specific/linux/turbostat/default.nix new file mode 100644 index 00000000000..10074f490b8 --- /dev/null +++ b/pkgs/os-specific/linux/turbostat/default.nix @@ -0,0 +1,20 @@ +{ stdenv, kernel }: + +stdenv.mkDerivation { + pname = "turbostat"; + inherit (kernel) src version; + + 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 + }; +} + |