Nix-darwin: override/overlay xcode + how to get a correct/working dev/build environment?

Thank you! I ended up going in a similar route: Best Practices for Expo / React Native development with devenv - #6 by tharakadesilva

I ended up using stdenvNoCc for stdenv package and instead of using xcrun and the Xcode SDK from Nix, I ended up using the ones from the XCode installation by setting this:

export PATH=$(echo $PATH | sd "${pkgs.xcbuild.xcrun}/bin" "")
unset DEVELOPER_DIR