furnace: Change updateScript
Because gitUpdater sorts v0.6pre18 > v0.6, which produces downgrading automatic update PRs.
This commit is contained in:
parent
fc784d0ca5
commit
5987f095ef
2 changed files with 13 additions and 4 deletions
|
@ -1,6 +1,5 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, gitUpdater
|
||||
, testers
|
||||
, furnace
|
||||
, fetchFromGitHub
|
||||
|
@ -104,9 +103,7 @@ stdenv.mkDerivation rec {
|
|||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = gitUpdater {
|
||||
rev-prefix = "v";
|
||||
};
|
||||
updateScript = ./update.sh;
|
||||
tests.version = testers.testVersion {
|
||||
package = furnace;
|
||||
};
|
||||
|
|
12
pkgs/applications/audio/furnace/update.sh
Executable file
12
pkgs/applications/audio/furnace/update.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p common-updater-scripts curl jql
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
# Because upstream uses release tags that don't always sort correctly, query for latest release
|
||||
version="$(
|
||||
curl -Ls 'https://api.github.com/repos/tildearrow/furnace/releases/latest' \
|
||||
| jql -r '"tag_name"' \
|
||||
| sed 's/^v//'
|
||||
)"
|
||||
update-source-version furnace "$version"
|
Loading…
Reference in a new issue