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