mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
16 lines
336 B
Bash
Executable File
16 lines
336 B
Bash
Executable File
#!/usr/bin/env nix-shell
|
|
#!nix-shell -i bash -p nodePackages.npm nix-update
|
|
|
|
set -euo pipefail
|
|
|
|
version=$(npm view manicode version)
|
|
|
|
# Generate updated lock file
|
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
|
npm i --package-lock-only manicode@$version
|
|
rm -f package.json
|
|
|
|
# Update version and hases
|
|
cd -
|
|
nix-update manicode --version "$version"
|