neovim: fix build on darwin, cleanup lua paths

fixes #16152

The cmake script had trouble finding the lua paths, this sets them
using “luaPackages.getLuaPath” and “luaPackages.getLuaCPath”.
This commit is contained in:
Matthew Bauer
2016-06-12 21:02:09 -05:00
parent b331af6de6
commit e0884e85cf
2 changed files with 16 additions and 15 deletions
+5
View File
@@ -19,6 +19,11 @@ let
inherit lua;
inherit (stdenv.lib) maintainers;
# helper functions for dealing with LUA_PATH and LUA_CPATH
getPath = lib : type : "${lib}/lib/lua/${lua.luaversion}/?.${type};${lib}/share/lua/${lua.luaversion}/?.${type}";
getLuaPath = lib : getPath lib "lua";
getLuaCPath = lib : getPath lib "so";
#define build lua package function
buildLuaPackage = callPackage ../development/lua-modules/generic lua;