mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
Use nixpkgs from the current directory because otherwise the npins used could be outdated. Also run npins upgrade as part of the script.
9 lines
201 B
Bash
Executable file
9 lines
201 B
Bash
Executable file
#!/usr/bin/env nix-shell
|
|
#!nix-shell -i bash -p npins -I nixpkgs=../
|
|
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
|
|
|
npins --lock-file pinned.json upgrade
|
|
npins --lock-file pinned.json update
|