mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
16 lines
329 B
Bash
Executable File
16 lines
329 B
Bash
Executable File
#!/usr/bin/env nix-shell
|
|
#!nix-shell -i bash -p nodejs nix-update
|
|
|
|
set -euo pipefail
|
|
|
|
version=$(npm view codebuff version)
|
|
|
|
# Generate updated lock file
|
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
|
npm i --package-lock-only codebuff@"$version"
|
|
rm -f package.json
|
|
|
|
# Update version and hashes
|
|
cd -
|
|
nix-update codebuff --version "$version"
|