about summary refs log tree commit diff
path: root/pkgs/servers/mastodon/update.sh
diff options
context:
space:
mode:
authorTheodore Ni <3806110+tjni@users.noreply.github.com>2023-07-07 23:02:48 -0700
committerTheodore Ni <3806110+tjni@users.noreply.github.com>2023-07-18 18:16:15 -0700
commite8808ced29ab2715e94a6fdc7943a910414fa688 (patch)
tree01f19e9510052628fd662b45027f7c37085a7033 /pkgs/servers/mastodon/update.sh
parentf1836b946fea5968fcb6cb6105e7901b8c498556 (diff)
downloadnixlib-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-xpkgs/servers/mastodon/update.sh4
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;