Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #68902 from dtzWill/feature/turbostat
Browse files Browse the repository at this point in the history
linuxPackages*.turbostat: init
  • Loading branch information
dtzWill committed Oct 7, 2019
2 parents 58c1198 + bd65f5e commit b014076
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions 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
};
}

2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -16022,6 +16022,8 @@ in

tp_smapi = callPackage ../os-specific/linux/tp_smapi { };

turbostat = callPackage ../os-specific/linux/turbostat { };

usbip = callPackage ../os-specific/linux/usbip { };

v86d = callPackage ../os-specific/linux/v86d { };
Expand Down

0 comments on commit b014076

Please sign in to comment.