forked from mirrors/nixpkgs
9474df2285
Upstream now uses Yarn instead of NPM, so we now use yarn2nix instead of node2nix.
18 lines
530 B
Bash
Executable file
18 lines
530 B
Bash
Executable file
#!/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 for the matrix-appservice-discord package."
|
|
echo "Usage: $0 <git release tag>"
|
|
exit 1
|
|
fi
|
|
|
|
SRC_REPO="https://raw.githubusercontent.com/Half-Shot/matrix-appservice-discord/$1"
|
|
|
|
wget "$SRC_REPO/package.json" -O package.json
|
|
wget "$SRC_REPO/yarn.lock" -O yarn.lock
|
|
yarn2nix --lockfile=yarn.lock > yarn-dependencies.nix
|
|
rm yarn.lock
|