Merge pull request #68902 from dtzWill/feature/turbostat
linuxPackages*.turbostat: init
commitb01407602cad296312661f4f472545ae93528c64
authorWill Dietz <w@wdtz.org>
dateMon 7 Oct 2019, 18:20 (7 years ago)
parent58c1198bd65f5e
pkgs/os-specific/linux/turbostat/default.nixnew file+20
@@ -0,0 +1,20 @@
1+{ stdenv, kernel }:
2+
3+stdenv.mkDerivation {
4+ pname = "turbostat";
5+ inherit (kernel) src version;
6+
7+ makeFlags = [ "PREFIX=${placeholder "out"}" ];
8+
9+ postPatch = ''
10+ cd tools/power/x86/turbostat
11+ '';
12+
13+ meta = with stdenv.lib; {
14+ description = "Report processor frequency and idle statistics";
15+ homepage = https://www.kernel.org/;
16+ license = licenses.gpl2;
17+ platforms = [ "i686-linux" "x86_64-linux" ]; # x86-specific
18+ };
19+}
20+
pkgs/top-level/all-packages.nix+2
@@ -16022,6 +16022,8 @@ in
1602216022
1602316023 tp_smapi = callPackage ../os-specific/linux/tp_smapi { };
1602416024
16025+ turbostat = callPackage ../os-specific/linux/turbostat { };
16026+
1602516027 usbip = callPackage ../os-specific/linux/usbip { };
1602616028
1602716029 v86d = callPackage ../os-specific/linux/v86d { };