macvim: fix build after Darwin SDK update

MacVim needs to use the system Xcode to build. Having `DEVELOPER_DIR`
set in the environment causes Xcode to try to use the nixpkgs SDK, which
doesn’t work. Unsetting it allows MacVim to build.
This commit is contained in:
Randy Eckenrode
2024-10-13 18:45:39 -04:00
parent f63d99842f
commit b268bb2440
+2
View File
@@ -94,6 +94,8 @@ stdenv.mkDerivation (finalAttrs: {
cppflags = map (drv: "-isystem ${lib.getDev drv}/include") inputs;
in
''
unset DEVELOPER_DIR # Use the system Xcode not the nixpkgs SDK.
CC=/usr/bin/clang
DEV_DIR=$(/usr/bin/xcode-select -print-path)/Platforms/MacOSX.platform/Developer