From a6b8550e3f6055df91067e8915c997cdeefe980a Mon Sep 17 00:00:00 2001 From: Astavie Date: Tue, 30 Apr 2024 12:38:45 +0200 Subject: [PATCH] zrythm: add passthru.updateScript --- pkgs/applications/audio/zrythm/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/applications/audio/zrythm/default.nix b/pkgs/applications/audio/zrythm/default.nix index a49764de7851..8ec6ba1a040a 100644 --- a/pkgs/applications/audio/zrythm/default.nix +++ b/pkgs/applications/audio/zrythm/default.nix @@ -54,6 +54,7 @@ , texi2html , vamp-plugin-sdk , wrapGAppsHook4 +, writeScript , xdg-utils , xxHash , yyjson @@ -85,6 +86,14 @@ stdenv.mkDerivation (finalAttrs: { sha256 = "sha256-Ljbw7bjGI6js4OP9KEXCkhC9AMbInSz0nn+pROm4vXw="; }; + passthru.updateScript = writeScript "update-zrythm" '' + #!/usr/bin/env nix-shell + #!nix-shell -i bash -p curl common-updater-scripts + + version="$(curl -s https://www.zrythm.org/releases/ | grep -o -m 1 'href="zrythm-[^"]*\.tar\.xz"' | head -1 | sed 's/href="zrythm-\(.*\)\.tar\.xz"/\1/')" + update-source-version zrythm "$version" + ''; + nativeBuildInputs = [ chromaprint cmake