Every flake update I'm asked to add Xcode to the nix-store

Hi :wave:

Every time I update my flake via nix flake update I’m asked to add Xcode.app to the nix-store, here’s the full log trace as per nix log /nix/store/fhdpv84kvw0bvkal9j8lmbjx5idvjifk-Xcode.app.drv

warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/fhdpv84kvw0bvkal9j8lmbjx5idvjifk-Xcode.app.drv^*'
install: skipping file '/dev/fd/63', as it was replaced while being copied

***
Unfortunately, we cannot download Xcode.app automatically.
Please go to https://developer.apple.com/services-account/download?path=/Developer_Tools/Xcode_14/Xcode_14.xip
to download it yourself, and add it to the Nix store by running the following commands.
Note: download (~ 5GB), extraction and storing of Xcode will take a while

open -W Xcode_14.xip
rm -rf Xcode_14.xip

nix-store --add-fixed --recursive sha256 Xcode.app
rm -rf Xcode.app

***

How can I get rid of this procedure on every flake update? This wasn’t the case 2 upgrades before, I never had to perform this before dminca/nix-config@7b47a69

What does which git show. and what is your $PATH when running nix?.

My first guess is that the git on your path is /usr/bin/git which on bare macOS is a stub asking you to install Xcode.