ryzen-monitor-ng: Fix build

makeTargets is not used by the default builder, and was not
calling the necessary make targets.

Added `make clean` to `preBuild` to ensure old files are removed
before building.
This commit is contained in:
Phil Dyer
2024-08-01 00:07:32 +05:30
committed by John Titor
parent abcd995edb
commit 7f2052d6ff
+4 -3
View File
@@ -14,13 +14,14 @@ stdenv.mkDerivation {
hash = "sha256-fcW2fEsCFliRnMFnboR0jchzVIlCYbr2AE6AS06cb6o=";
};
## Remove binaries committed into upstream repo
# Upstream repo contains pre-compiled binaries and object files
# that are out of date.
# These need to be removed before build stage.
preBuild = ''
rm src/ryzen_monitor
make clean
'';
makeTargets = [ "clean" "install" ];
installPhase = ''
runHook preInstall