mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-06 04:24:28 +03:00
mastodon: adapt update script to new nix-prefetch-github
This commit is contained in:
parent
f1836b946f
commit
e8808ced29
@ -4,7 +4,7 @@
|
||||
owner = "mastodon";
|
||||
repo = "mastodon";
|
||||
rev = "v4.1.4";
|
||||
sha256 = "8ULBO8IdwBzC5dgX3netTHbbRrODX4CropWZWtqWHZw=";
|
||||
hash = "sha256-8ULBO8IdwBzC5dgX3netTHbbRrODX4CropWZWtqWHZw=";
|
||||
};
|
||||
in applyPatches {
|
||||
inherit src;
|
||||
|
@ -76,7 +76,7 @@ trap cleanup EXIT
|
||||
|
||||
echo "Fetching source code $REVISION"
|
||||
JSON=$(nix-prefetch-github "$OWNER" "$REPO" --rev "$REVISION" 2> $WORK_DIR/nix-prefetch-git.out)
|
||||
SHA=$(echo "$JSON" | jq -r .sha256)
|
||||
HASH=$(echo "$JSON" | jq -r .hash)
|
||||
|
||||
echo "Creating version.nix"
|
||||
echo "\"$VERSION\"" | sed 's/^"v/"/' > version.nix
|
||||
@ -88,7 +88,7 @@ cat > source.nix << EOF
|
||||
owner = "mastodon";
|
||||
repo = "mastodon";
|
||||
rev = "$REVISION";
|
||||
sha256 = "$SHA";
|
||||
hash = "$HASH";
|
||||
};
|
||||
in applyPatches {
|
||||
inherit src;
|
||||
|
Loading…
Reference in New Issue
Block a user