about summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/element/seshat/update.sh
blob: b201501e1c43674aff4a674a4ab766e8a3e69380 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env nix-shell
#!nix-shell -I nixpkgs=../ -i bash -p wget yarn2nix

set -euo pipefail

if [ "$#" -ne 1 ] || [[ "$1" == -* ]]; then
  echo "Regenerates the Yarn dependency lock files."
  echo "Usage: $0 <git release tag>"
  exit 1
fi

SRC="https://raw.githubusercontent.com/matrix-org/seshat/$1"

wget "$SRC/seshat-node/yarn.lock"
yarn2nix > yarn.nix
rm yarn.lock