about summary refs log tree commit diff
path: root/pkgs/servers/mastodon/update.sh
diff options
context:
space:
mode:
authorKerstin Humm <kerstin@erictapen.name>2023-09-28 12:05:22 +0200
committerKerstin Humm <kerstin@erictapen.name>2023-09-28 12:05:22 +0200
commitded07331ce26851f718eaee557dcfed79887873a (patch)
tree5567e10e4d419a51151626b76e6c5e162841ca86 /pkgs/servers/mastodon/update.sh
parent1e411c55166539b130b330dafcc4034152f8d4fd (diff)
downloadnixlib-ded07331ce26851f718eaee557dcfed79887873a.tar
nixlib-ded07331ce26851f718eaee557dcfed79887873a.tar.gz
nixlib-ded07331ce26851f718eaee557dcfed79887873a.tar.bz2
nixlib-ded07331ce26851f718eaee557dcfed79887873a.tar.lz
nixlib-ded07331ce26851f718eaee557dcfed79887873a.tar.xz
nixlib-ded07331ce26851f718eaee557dcfed79887873a.tar.zst
nixlib-ded07331ce26851f718eaee557dcfed79887873a.zip
mastodon: fix updateScript
nix-prefetch-github emits "hash" attribute, not "sha256"
Diffstat (limited to 'pkgs/servers/mastodon/update.sh')
-rwxr-xr-xpkgs/servers/mastodon/update.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/servers/mastodon/update.sh b/pkgs/servers/mastodon/update.sh
index eafcdd958617..7f3fb522c163 100755
--- a/pkgs/servers/mastodon/update.sh
+++ b/pkgs/servers/mastodon/update.sh
@@ -77,7 +77,7 @@ trap cleanup EXIT
 
 echo "Fetching source code $REVISION"
 JSON=$(nix-prefetch-github "$OWNER" "$REPO" --rev "$REVISION" 2> $WORK_DIR/nix-prefetch-git.out)
-HASH="$(echo "$JSON" | jq -r .sha256)"
+HASH="$(echo "$JSON" | jq -r .hash)"
 HASH="$(nix hash to-sri --type sha256 "$HASH")"
 
 echo "Creating version.nix"