Skip to content

Commit

Permalink
macvim: fix build after Darwin SDK update
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
reckenrode committed Oct 13, 2024
1 parent f63d998 commit b268bb2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/applications/editors/vim/macvim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b268bb2

Please sign in to comment.