1 { lib, stdenv, fetchFromGitHub, fetchpatch, cmake }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-l+IpFqBnCYUU825++sUPySD/Ku0TEIX2kt+S0Wml6iA=";
14 # in master post 0.6.0, see https://github.com/powercap/powercap/issues/8
17 name = "fix-pkg-config.patch";
18 url = "https://github.com/powercap/powercap/commit/278dceb51635686e343edfc357b6020533fff299.patch";
19 sha256 = "0h62j63xdn0iqyx4xbia6hlmdjn45camb82z4vv6sb37x9sph7rg";
23 nativeBuildInputs = [ cmake ];
26 "-DBUILD_SHARED_LIBS=On"
30 description = "Tools and library to read/write to the Linux power capping framework (sysfs interface)";
31 license = licenses.bsd3;
32 platforms = platforms.linux;
33 maintainers = with maintainers; [ rowanG077 ];