mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-13 20:30:02 +00:00
darwin-rebuild: keep result symlink when running build
This commit is contained in:
parent
2e93c9ca29
commit
258cda10ce
1 changed files with 5 additions and 1 deletions
|
@ -71,9 +71,13 @@ done
|
|||
|
||||
if [ -z "$action" ]; then showSyntax; fi
|
||||
|
||||
if [ "$action" = switch ]; then
|
||||
extraBuildFlags+=("--no-out-link")
|
||||
fi
|
||||
|
||||
echo "building the system configuration..." >&2
|
||||
if [ "$action" = switch -o "$action" = build ]; then
|
||||
systemConfig="$(nix-build '<darwin>' ${extraBuildFlags[@]} --no-out-link -A system)"
|
||||
systemConfig="$(nix-build '<darwin>' ${extraBuildFlags[@]} -A system)"
|
||||
fi
|
||||
|
||||
if [ -z "$systemConfig" ]; then exit 0; fi
|
||||
|
|
Loading…
Add table
Reference in a new issue