powercap: init at 0.3.1
This commit is contained in:
parent
52f33101dc
commit
84ec3af802
26
pkgs/os-specific/linux/powercap/default.nix
Normal file
26
pkgs/os-specific/linux/powercap/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
{ lib, stdenv, fetchFromGitHub, cmake }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "powercap";
|
||||||
|
version = "0.3.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "powercap";
|
||||||
|
repo = "powercap";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0f1sg1zsskcfralg9khwq7lmz25gvnyknza3bb0hmh1a9lw0jhdn";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
|
cmakeFlags = [
|
||||||
|
"-DBUILD_SHARED_LIBS=On"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Tools and library to read/write to the Linux power capping framework (sysfs interface)";
|
||||||
|
license = licenses.bsd3;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ rowanG077 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -19429,6 +19429,8 @@ in
|
||||||
|
|
||||||
power-calibrate = callPackage ../os-specific/linux/power-calibrate { };
|
power-calibrate = callPackage ../os-specific/linux/power-calibrate { };
|
||||||
|
|
||||||
|
powercap = callPackage ../os-specific/linux/powercap { };
|
||||||
|
|
||||||
powerstat = callPackage ../os-specific/linux/powerstat { };
|
powerstat = callPackage ../os-specific/linux/powerstat { };
|
||||||
|
|
||||||
smemstat = callPackage ../os-specific/linux/smemstat { };
|
smemstat = callPackage ../os-specific/linux/smemstat { };
|
||||||
|
|
Loading…
Reference in a new issue