a352dc5e0f
A userspace tool for setting and getting AMD CPU power and performance parameters. Relies on the ryzen_smu kernel module.
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "ryzen-monitor-ng";
|
|
version = "2.0.5-unstable-2023-11-05";
|
|
|
|
# Upstream has not updated ryzen_smu header version
|
|
# This fork corrects ryzen_smu header version and
|
|
# adds support for Matisse AMD CPUs.
|
|
src = fetchFromGitHub {
|
|
owner = "plasmin";
|
|
repo = "ryzen_monitor_ng";
|
|
rev = "8b7854791d78de731a45ce7d30dd17983228b7b1";
|
|
hash = "sha256-fcW2fEsCFliRnMFnboR0jchzVIlCYbr2AE6AS06cb6o=";
|
|
};
|
|
|
|
## Remove binaries committed into upstream repo
|
|
preBuild = ''
|
|
rm src/ryzen_monitor
|
|
'';
|
|
|
|
makeTargets = [ "clean" "install" ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/bin
|
|
mv ./src/ryzen_monitor $out/bin
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Access Ryzen SMU information exposed by the ryzen_smu driver";
|
|
homepage = "https://github.com/mann1x/ryzen_monitor_ng";
|
|
license = licenses.agpl3Only;
|
|
platforms = [ "x86_64-linux" ];
|
|
maintainers = with maintainers; [ phdyellow ];
|
|
mainProgram = "ryzen_monitor";
|
|
};
|
|
}
|