From b268bb2440d372b661e92d56b7871dd3ec59d4d8 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sun, 13 Oct 2024 15:57:10 -0400 Subject: [PATCH] macvim: fix build after Darwin SDK update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- pkgs/applications/editors/vim/macvim.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/editors/vim/macvim.nix b/pkgs/applications/editors/vim/macvim.nix index 64119b78709f4..2005eef7b6fe1 100644 --- a/pkgs/applications/editors/vim/macvim.nix +++ b/pkgs/applications/editors/vim/macvim.nix @@ -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