From c82195d9e82b28147e9a960f6d47ca9200228452 Mon Sep 17 00:00:00 2001 From: Kerstin Humm Date: Wed, 23 Aug 2023 16:26:32 +0200 Subject: mastodon: 4.1.6 -> 4.2.1 - run streaming processes in separate systemd services - remove redundancy in test - fix update script - release notes See https://github.com/mastodon/mastodon/releases/tag/v4.2.1 for details --- pkgs/servers/mastodon/update.sh | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'pkgs/servers/mastodon/update.sh') diff --git a/pkgs/servers/mastodon/update.sh b/pkgs/servers/mastodon/update.sh index b79e8d306310..ab430315858e 100755 --- a/pkgs/servers/mastodon/update.sh +++ b/pkgs/servers/mastodon/update.sh @@ -53,9 +53,10 @@ fi if [[ -z "$REVISION" ]]; then REVISION="$(curl ${GITHUB_TOKEN:+" -u \":$GITHUB_TOKEN\""} -s "https://api.github.com/repos/$OWNER/$REPO/releases" | jq -r 'map(select(.prerelease == false)) | .[0].tag_name')" - VERSION="$(echo "$REVISION" | cut -c2-)" fi +VERSION="$(echo "$REVISION" | cut -c2-)" + rm -f gemset.nix source.nix cd "$(dirname "${BASH_SOURCE[0]}")" || exit 1 @@ -85,15 +86,17 @@ cat > source.nix << EOF let version = "$VERSION"; in -applyPatches { +( + applyPatches { + src = fetchFromGitHub { + owner = "$OWNER"; + repo = "$REPO"; + rev = "v\${version}"; + hash = "$HASH"; + }; + patches = [$PATCHES]; + }) // { inherit version; - src = fetchFromGitHub { - owner = "$OWNER"; - repo = "$REPO"; - rev = "v\${version}"; - hash = "$HASH"; - }; - patches = [$PATCHES]; yarnHash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="; } EOF -- cgit 1.4.1