depot/third_party/nixpkgs/pkgs/tools/misc/sharedown/update.sh
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

16 lines
399 B
Bash
Executable file

#!/usr/bin/env nix-shell
#!nix-shell -i bash -p nix-update yarn yarn2nix-moretea.yarn2nix
set -euo pipefail
nix-update sharedown
dirname="$(realpath "$(dirname "$0")")"
sourceDir="$(nix-build -A sharedown.src --no-out-link)"
tempDir="$(mktemp -d)"
cp -r "$sourceDir"/* "$tempDir"
cd "$tempDir"
PUPPETEER_SKIP_DOWNLOAD=1 yarn install
yarn2nix > "$dirname/yarndeps.nix"
cp -r yarn.lock "$dirname"