mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 18:12:46 +00:00
17 lines
399 B
Bash
17 lines
399 B
Bash
|
#!/usr/bin/env nix-shell
|
||
|
#!nix-shell -i bash -p nix-update yarn yarn2nix-moretea.yarn2nix
|
||
|
|
||
|
set -euo pipefail
|
||
|
|
||
|
dirname="$(realpath "$(dirname "$0")")"
|
||
|
sourceDir="$(nix-build -A sharedown.src --no-out-link)"
|
||
|
tempDir="$(mktemp -d)"
|
||
|
|
||
|
nix-update sharedown
|
||
|
|
||
|
cp -r "$sourceDir"/* "$tempDir"
|
||
|
cd "$tempDir"
|
||
|
PUPPETEER_SKIP_DOWNLOAD=1 yarn install
|
||
|
yarn2nix > "$dirname/yarndeps.nix"
|
||
|
cp -r yarn.lock "$dirname"
|