nixpkgs/pkgs/tools/misc/sharedown/update.sh
Jan Tojnar 28237545a5 sharedown: 2.0.0 → 3.0.1
https://github.com/kylon/Sharedown/releases/tag/3.0.0
https://github.com/kylon/Sharedown/releases/tag/3.0.1

Also fix the update script (the source needs to be updated before we can re-generate the lockfile.)
2021-11-26 01:00:24 +01:00

17 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"