Merge pull request #43388 from symphorien/neovim-python-env

Fix neovim PYTHONPATH handling
This commit is contained in:
Jörg Thalheim
2018-08-30 08:51:21 +01:00
committed by GitHub
4 changed files with 35 additions and 28 deletions
+1 -1
View File
@@ -1004,7 +1004,7 @@ self = rec {
sha256 = "03sr53680kcwxaa5xbqzdfbsgday3bkzja33wym49w9gjmlaa320";
};
dependencies = ["vimproc" "vimshell" "self" "forms"];
pythonDependencies = with pythonPackages; [ sexpdata websocket_client ];
passthru.python3Dependencies = ps: with ps; [ sexpdata websocket_client ];
};
supertab = buildVimPluginFrom2Nix { # created by nix#NixDerivation
+7 -1
View File
@@ -280,6 +280,7 @@ let
installPhase = lib.concatStringsSep
"\n"
(lib.flatten (lib.mapAttrsToList packageLinks packages));
preferLocalBuild = true;
}
);
in
@@ -423,6 +424,7 @@ rec {
} // a);
requiredPlugins = {
packages ? {},
givenKnownPlugins ? null,
vam ? null,
pathogen ? null, ...
@@ -437,8 +439,12 @@ rec {
vamNames = findDependenciesRecursively { inherit knownPlugins; names = lib.concatMap toNames vam.pluginDictionaries; };
names = (lib.optionals (pathogen != null) pathogenNames) ++
(lib.optionals (vam != null) vamNames);
nonNativePlugins = map (name: knownPlugins.${name}) names;
nativePluginsConfigs = lib.attrsets.attrValues packages;
nativePlugins = lib.concatMap ({start?[], opt?[]}: start++opt) nativePluginsConfigs;
in
map (name: knownPlugins.${name}) names;
nativePlugins ++ nonNativePlugins;
# test cases:
test_vim_with_vim_addon_nix_using_vam = vim_configurable.customize {
@@ -1 +1 @@
pythonDependencies = with pythonPackages; [ sexpdata websocket_client ];
passthru.python3Dependencies = ps: with ps; [ sexpdata websocket_client ];