vim_configurable: disable darwinSupport by default
Using gtk + darwin support seems broken at the moment, we probably want guiSupport = "carbon" instead but that doesn't work and something like macvim is probably better for that. This fixes the build while keeping guiSupport enabled which might be desirable for eg. +clientserver. Fixes #45025
This commit is contained in:
parent
8a6064a526
commit
e2ef327652
|
@ -24,9 +24,7 @@
|
||||||
, cscopeSupport ? config.vim.cscope or true # Enable cscope interface
|
, cscopeSupport ? config.vim.cscope or true # Enable cscope interface
|
||||||
, netbeansSupport ? config.netbeans or true # Enable NetBeans integration support.
|
, netbeansSupport ? config.netbeans or true # Enable NetBeans integration support.
|
||||||
, ximSupport ? config.vim.xim or true # less than 15KB, needed for deadkeys
|
, ximSupport ? config.vim.xim or true # less than 15KB, needed for deadkeys
|
||||||
# By default, compile with darwin support if we're compiling on darwin, but
|
, darwinSupport ? config.vim.darwin or false # Enable Darwin support
|
||||||
# allow this to be disabled by setting config.vim.darwin to false
|
|
||||||
, darwinSupport ? stdenv.isDarwin && (config.vim.darwin or true) # Enable Darwin support
|
|
||||||
, ftNixSupport ? config.vim.ftNix or true # Add .nix filetype detection and minimal syntax highlighting support
|
, ftNixSupport ? config.vim.ftNix or true # Add .nix filetype detection and minimal syntax highlighting support
|
||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
|
@ -100,6 +98,8 @@ in stdenv.mkDerivation rec {
|
||||||
"--disable-carbon_check"
|
"--disable-carbon_check"
|
||||||
"--disable-gtktest"
|
"--disable-gtktest"
|
||||||
]
|
]
|
||||||
|
++ stdenv.lib.optional stdenv.isDarwin
|
||||||
|
(if darwinSupport then "--enable-darwin" else "--disable-darwin")
|
||||||
++ stdenv.lib.optionals luaSupport [
|
++ stdenv.lib.optionals luaSupport [
|
||||||
"--with-lua-prefix=${lua}"
|
"--with-lua-prefix=${lua}"
|
||||||
"--enable-luainterp"
|
"--enable-luainterp"
|
||||||
|
@ -144,9 +144,6 @@ in stdenv.mkDerivation rec {
|
||||||
cp ${vimPlugins.vim-nix.src}/syntax/nix.vim runtime/syntax/nix.vim
|
cp ${vimPlugins.vim-nix.src}/syntax/nix.vim runtime/syntax/nix.vim
|
||||||
'';
|
'';
|
||||||
|
|
||||||
NIX_LDFLAGS = stdenv.lib.optionalString (darwinSupport && stdenv.isDarwin)
|
|
||||||
"/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation";
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
'' + stdenv.lib.optionalString stdenv.isLinux ''
|
'' + stdenv.lib.optionalString stdenv.isLinux ''
|
||||||
patchelf --set-rpath \
|
patchelf --set-rpath \
|
||||||
|
|
Loading…
Reference in New Issue