diff options
author | Theodore Ni <3806110+tjni@users.noreply.github.com> | 2023-07-07 23:02:48 -0700 |
---|---|---|
committer | Theodore Ni <3806110+tjni@users.noreply.github.com> | 2023-07-18 18:16:15 -0700 |
commit | e8808ced29ab2715e94a6fdc7943a910414fa688 (patch) | |
tree | 01f19e9510052628fd662b45027f7c37085a7033 /pkgs/servers/mastodon/update.sh | |
parent | f1836b946fea5968fcb6cb6105e7901b8c498556 (diff) | |
download | nixlib-e8808ced29ab2715e94a6fdc7943a910414fa688.tar nixlib-e8808ced29ab2715e94a6fdc7943a910414fa688.tar.gz nixlib-e8808ced29ab2715e94a6fdc7943a910414fa688.tar.bz2 nixlib-e8808ced29ab2715e94a6fdc7943a910414fa688.tar.lz nixlib-e8808ced29ab2715e94a6fdc7943a910414fa688.tar.xz nixlib-e8808ced29ab2715e94a6fdc7943a910414fa688.tar.zst nixlib-e8808ced29ab2715e94a6fdc7943a910414fa688.zip |
mastodon: adapt update script to new nix-prefetch-github
Diffstat (limited to 'pkgs/servers/mastodon/update.sh')
-rwxr-xr-x | pkgs/servers/mastodon/update.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/servers/mastodon/update.sh b/pkgs/servers/mastodon/update.sh index 7b4d97fd1397..74a1ce129ab4 100755 --- a/pkgs/servers/mastodon/update.sh +++ b/pkgs/servers/mastodon/update.sh @@ -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; |