nixpkgs/pkgs/os-specific/linux/powercap/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
619 B
Nix
Raw Normal View History

2021-03-25 15:10:57 +00:00
{ lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
pname = "powercap";
2021-12-23 16:19:07 +00:00
version = "0.5.0";
2021-03-25 15:10:57 +00:00
src = fetchFromGitHub {
owner = "powercap";
repo = "powercap";
rev = "v${version}";
2021-12-23 16:19:07 +00:00
sha256 = "sha256-VvepbABc7daRE0/sJqsCb+m2my8O3B1ICXywBqsjSO8=";
2021-03-25 15:10:57 +00:00
};
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 ];
};
}