diff options
author | Kerstin Humm <kerstin@erictapen.name> | 2023-08-23 16:26:32 +0200 |
---|---|---|
committer | Kerstin Humm <kerstin@erictapen.name> | 2023-11-14 21:13:46 +0100 |
commit | c82195d9e82b28147e9a960f6d47ca9200228452 (patch) | |
tree | 19fc217ab8f99745bafba661de72d119924fd741 /pkgs/servers/mastodon/update.sh | |
parent | 643b2c56b12a01caabdda9497e211d341e8612a4 (diff) | |
download | nixlib-c82195d9e82b28147e9a960f6d47ca9200228452.tar nixlib-c82195d9e82b28147e9a960f6d47ca9200228452.tar.gz nixlib-c82195d9e82b28147e9a960f6d47ca9200228452.tar.bz2 nixlib-c82195d9e82b28147e9a960f6d47ca9200228452.tar.lz nixlib-c82195d9e82b28147e9a960f6d47ca9200228452.tar.xz nixlib-c82195d9e82b28147e9a960f6d47ca9200228452.tar.zst nixlib-c82195d9e82b28147e9a960f6d47ca9200228452.zip |
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
Diffstat (limited to 'pkgs/servers/mastodon/update.sh')
-rwxr-xr-x | pkgs/servers/mastodon/update.sh | 21 |
1 files changed, 12 insertions, 9 deletions
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 |