2021-06-06 07:54:09 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pciutils, cmake }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ryzenadj";
|
2023-03-27 19:17:25 +00:00
|
|
|
version = "0.13.0";
|
2021-06-06 07:54:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FlyGoat";
|
|
|
|
repo = "RyzenAdj";
|
|
|
|
rev = "v${version}";
|
2023-03-27 19:17:25 +00:00
|
|
|
sha256 = "sha256-n/LHFv14aDLbobeamOgDYBml1DgSGJmfmg/qff78i4c=";
|
2021-06-06 07:54:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pciutils cmake ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D libryzenadj.so $out/lib/libryzenadj.so
|
|
|
|
install -D ryzenadj $out/bin/ryzenadj
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Adjust power management settings for Ryzen Mobile Processors.";
|
|
|
|
homepage = "https://github.com/FlyGoat/RyzenAdj";
|
|
|
|
license = licenses.lgpl3Only;
|
2023-03-04 12:14:45 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2021-06-06 07:54:09 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|