Skip to content

Commit

Permalink
Merge pull request #1281 from emilazy/push-ozqwkmtmkvtr
Browse files Browse the repository at this point in the history
darwin-rebuild: pass `${extraBuildFlags[@]}` to `nix-instantiate`
  • Loading branch information
emilazy authored Jan 21, 2025
2 parents 9525191 + 5665d6c commit 3cdacf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/nix-tools/darwin-rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ if [ "$action" != build ]; then
fi

if [ "$action" = edit ]; then
darwinConfig=$(nix-instantiate --find-file darwin-config)
if [ -z "$flake" ]; then
darwinConfig=$(nix-instantiate "${extraBuildFlags[@]}" --find-file darwin-config)
exec "${EDITOR:-vi}" "$darwinConfig"
else
exec nix "${flakeFlags[@]}" edit "${extraLockFlags[@]}" -- "$flake#$flakeAttr"
Expand Down

0 comments on commit 3cdacf1

Please sign in to comment.