mirror of
https://github.com/DeterminateSystems/update-flake-lock.git
synced 2025-04-21 09:20:16 +03:00
Allow consumers to update specific flake inputs
This commit is contained in:
parent
8145cc6e00
commit
1b8dad2bd0
2 changed files with 18 additions and 1 deletions
12
update-input-or-inputs.sh
Executable file
12
update-input-or-inputs.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
to_update=$*
|
||||
|
||||
if [ -n "$to_update" ]; then
|
||||
inputs=()
|
||||
for input in $to_update; do
|
||||
inputs+=("--update-input" "$input")
|
||||
done
|
||||
nix flake lock "${inputs[@]}" --commit-lock-file
|
||||
else
|
||||
nix flake update --commit-lock-file
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue