tone: use nix-update-script

This commit is contained in:
Gutyina Gergő
2025-03-11 22:00:50 +01:00
parent b24cb720dd
commit 6ef639ae0d
2 changed files with 2 additions and 9 deletions
+2 -1
View File
@@ -5,6 +5,7 @@
ffmpeg-full,
dotnetCorePackages,
versionCheckHook,
nix-update-script,
}:
buildDotnetModule rec {
@@ -33,7 +34,7 @@ buildDotnetModule rec {
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
passthru.updateScript = ./update.sh;
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://github.com/sandreas/tone";
-8
View File
@@ -1,8 +0,0 @@
#!/usr/bin/env nix-shell
#!nix-shell --pure -i bash -p bash nix nix-update git cacert
set -eo pipefail
prev_version=$(nix eval --raw -f. tone.version)
nix-update tone
[[ $(nix eval --raw -f. tone.version) == "$prev_version" ]] ||
"$(nix-build . -A tone.fetch-deps --no-out-link)"