mirror of
https://github.com/DeterminateSystems/update-flake-lock.git
synced 2024-12-24 05:52:07 +01:00
13 lines
249 B
Bash
13 lines
249 B
Bash
|
#!/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
|