1
0
Fork 0
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:
Daiderd Jordan 2017-03-04 20:00:23 +01:00
parent 2e93c9ca29
commit 258cda10ce
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -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