mastodon: fix updateScript

nix-prefetch-github emits "hash" attribute, not "sha256"
This commit is contained in:
Kerstin Humm 2023-09-28 12:05:22 +02:00
parent 1e411c5516
commit ded07331ce
No known key found for this signature in database
GPG key ID: 40293358C7B9326B

View file

@ -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"