mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
mastodon: simplify update script
This commit is contained in:
parent
d90e8fdfb7
commit
a985e3c9ff
@ -78,7 +78,6 @@ 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 .hash)"
|
||||
HASH="$(nix hash to-sri --type sha256 "$HASH")"
|
||||
|
||||
echo "Creating version.nix"
|
||||
echo "\"$VERSION\"" | sed 's/^"v/"/' > version.nix
|
||||
|
Loading…
Reference in New Issue
Block a user