From 99f6c0b130dd37673ebc94901db2db19d9a4655a Mon Sep 17 00:00:00 2001 From: sefidel Date: Sun, 9 Jul 2023 15:48:36 +0900 Subject: chore(flake): bump --- overlays/mjolnir-package/update.sh | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100755 overlays/mjolnir-package/update.sh (limited to 'overlays/mjolnir-package/update.sh') diff --git a/overlays/mjolnir-package/update.sh b/overlays/mjolnir-package/update.sh deleted file mode 100755 index 548de93..0000000 --- a/overlays/mjolnir-package/update.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env nix-shell -#!nix-shell -i bash -p nix curl jq prefetch-yarn-deps nix-prefetch-github - -if [ "$#" -gt 1 ] || [[ "$1" == -* ]]; then - echo "Regenerates packaging data for mjolnir." - echo "Usage: $0 [git release tag]" - exit 1 -fi - -version=$1 - -set -euo pipefail - -if [ -z "$version" ]; then - version=$(curl "https://api.github.com/repos/matrix-org/mjolnir/releases/latest" | jq -r '.tag_name') -fi - -src="https://raw.githubusercontent.com/matrix-org/mjolnir/$version" -src_hash=$(nix-prefetch-github matrix-org mjolnir --rev ${version} | jq -r .sha256) - -tmpdir=$(mktemp -d) -trap 'rm -rf "$tmpdir"' EXIT - -pushd $tmpdir -curl -O "$src/yarn.lock" -yarn_hash=$(prefetch-yarn-deps yarn.lock) -popd - -curl -O "$src/package.json" -cat > pin.json << EOF -{ - "version": "$version", - "srcSha256": "$src_hash", - "yarnSha256": "$yarn_hash" -} -EOF -- cgit 1.4.1