Merge pull request #260017 from OPNA2608/fix/furnace-updateScript

furnace: Change updateScript

authored by Weijia Wang and committed by GitHub 28600ee9 c3a3b38c

+13 -4
+1 -4
pkgs/applications/audio/furnace/default.nix
··· 1 1 { stdenv 2 2 , lib 3 - , gitUpdater 4 3 , testers 5 4 , furnace 6 5 , fetchFromGitHub ··· 104 103 ''; 105 104 106 105 passthru = { 107 - updateScript = gitUpdater { 108 - rev-prefix = "v"; 109 - }; 106 + updateScript = ./update.sh; 110 107 tests.version = testers.testVersion { 111 108 package = furnace; 112 109 };
+12
pkgs/applications/audio/furnace/update.sh
··· 1 + #!/usr/bin/env nix-shell 2 + #!nix-shell -i bash -p common-updater-scripts curl jql 3 + 4 + set -eu -o pipefail 5 + 6 + # Because upstream uses release tags that don't always sort correctly, query for latest release 7 + version="$( 8 + curl -Ls 'https://api.github.com/repos/tildearrow/furnace/releases/latest' \ 9 + | jql -r '"tag_name"' \ 10 + | sed 's/^v//' 11 + )" 12 + update-source-version furnace "$version"