1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

ryzen-monitor-ng: moved cleanup to postfetch

Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com>
This commit is contained in:
John Titor 2024-08-01 00:04:11 +05:30
parent c5e393f54b
commit 6b987b7971
No known key found for this signature in database
GPG key ID: 29B0514F4E3C1CC0

View file

@ -16,17 +16,16 @@ stdenv.mkDerivation {
owner = "plasmin";
repo = "ryzen_monitor_ng";
rev = "8b7854791d78de731a45ce7d30dd17983228b7b1";
hash = "sha256-fcW2fEsCFliRnMFnboR0jchzVIlCYbr2AE6AS06cb6o=";
hash = "sha256-xdYNtXCbNy3/y5OAHZEi9KgPtwr1LTtLWAZC5DDCfmE=";
# Upstream repo contains pre-compiled binaries and object files
# that are out of date.
# These need to be removed before build stage.
postFetch = ''
rm "$out/src/ryzen_monitor"
make -C "$out" clean
'';
};
# 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
'';
makeFlags = [ "PREFIX=${placeholder "out"}" ];
passthru.updateScript = unstableGitUpdater { };