tone: use nix-update-script
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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)"
|
||||
Reference in New Issue
Block a user