blob: 9a9996ecf61a8d99163cb03f8ec6a82885fc716d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{ 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";
};
}
|