Unverified Commit 6ef639ae authored by Gutyina Gergő's avatar Gutyina Gergő
Browse files

tone: use nix-update-script

parent b24cb720
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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";

pkgs/by-name/to/tone/update.sh

deleted100755 → 0
+0 −8
Original line number Diff line number Diff line
#!/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)"