aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/applications/editors/vim/macvim.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/applications/editors/vim/macvim.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/applications/editors/vim/macvim.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/applications/editors/vim/macvim.nix b/infra/libkookie/nixpkgs/pkgs/applications/editors/vim/macvim.nix
index ef6c6a144071..d2cc14c30c48 100644
--- a/infra/libkookie/nixpkgs/pkgs/applications/editors/vim/macvim.nix
+++ b/infra/libkookie/nixpkgs/pkgs/applications/editors/vim/macvim.nix
@@ -94,6 +94,19 @@ stdenv.mkDerivation {
+ ''
unset LD
''
+ # When building with nix-daemon, we need to pass -derivedDataPath or else it tries to use
+ # a folder rooted in /var/empty and fails. Unfortunately we can't just pass -derivedDataPath
+ # by itself as this flag requires the use of -scheme or -xctestrun (not sure why), but MacVim
+ # by default just runs `xcodebuild -project src/MacVim/MacVim.xcodeproj`, relying on the default
+ # behavior to build the first target in the project. Experimentally, there seems to be a scheme
+ # called MacVim, so we'll explicitly select that. We also need to specify the configuration too
+ # as the scheme seems to have the wrong default.
+ + ''
+ configureFlagsArray+=(
+ XCODEFLAGS="-scheme MacVim -derivedDataPath $NIX_BUILD_TOP/derivedData"
+ --with-xcodecfg="Release"
+ )
+ ''
;
# Because we're building with system clang, this means we're building against Xcode's SDK and