Unverified Commit ded07331 authored by Kerstin Humm's avatar Kerstin Humm
Browse files

mastodon: fix updateScript

nix-prefetch-github emits "hash" attribute, not "sha256"
parent 1e411c55
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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"