Remove getConfig helper function
An expression like ‘getConfig [ "cabal" "libraryProfiling" ] false’ can be written more concisely as ‘config.cabal.libraryProfiling or false’.
This commit is contained in:
@@ -46,14 +46,14 @@ composableDerivation {} {
|
||||
;
|
||||
|
||||
cfg = {
|
||||
pythonSupport = getConfig [ "vim" "python" ] true;
|
||||
darwinSupport = getConfig [ "vim" "darwin" ] false;
|
||||
nlsSupport = getConfig [ "vim" "nls" ] false;
|
||||
tclSupport = getConfig [ "vim" "tcl" ] false;
|
||||
multibyteSupport = getConfig [ "vim" "multibyte" ] false;
|
||||
cscopeSupport = getConfig [ "vim" "cscope" ] false;
|
||||
pythonSupport = config.vim.python or true;
|
||||
darwinSupport = config.vim.darwin or false;
|
||||
nlsSupport = config.vim.nls or false;
|
||||
tclSupport = config.vim.tcl or false;
|
||||
multibyteSupport = config.vim.multibyte or false;
|
||||
cscopeSupport = config.vim.cscope or false;
|
||||
# add .nix filetype detection and minimal syntax highlighting support
|
||||
ftNixSupport = getConfig [ "vim" "ftNix" ] true;
|
||||
ftNixSupport = config.vim.ftNix or true;
|
||||
};
|
||||
|
||||
#--enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
|
||||
|
||||
Reference in New Issue
Block a user