1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

enable --dry-run for darwin-rebuild

This commit is contained in:
Daiderd Jordan 2016-12-22 23:25:32 +01:00
parent f317db6bf4
commit 303d5fa2c4
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -28,7 +28,7 @@ while [ "$#" -gt 0 ]; do
switch|build)
action="$i"
;;
--show-trace|--no-build-hook|--keep-failed|-K|--verbose|-v|-vv|-vvv|-vvvv|-vvvvv|--fallback|-Q)
--show-trace|--no-build-hook|--dry-run|--keep-failed|-K|--verbose|-v|-vv|-vvv|-vvvv|-vvvvv|--fallback|-Q)
extraBuildFlags+=("$i")
;;
--max-jobs|-j|--cores|-I)
@ -73,6 +73,8 @@ if [ "$action" = switch -o "$action" = build ]; then
systemConfig="$(nix-build '<darwin>' ${extraBuildFlags[@]} --no-out-link -A system)"
fi
if [ -z "$systemConfig" ]; then exit 0; fi
if [ "$action" = build ]; then
echo $systemConfig
fi