lua packages: propagate libs with a setupHook

The LUA_PATH and LUA_CPATH variables are needed to load libraries.
This setupHook exports them to the environment.
This commit is contained in:
Luka Blaskovic
2018-02-25 21:24:47 +00:00
parent 8645a1b69d
commit 7b7607382d
2 changed files with 36 additions and 3 deletions
+4 -2
View File
@@ -9,7 +9,7 @@
, pcre, oniguruma, gnulib, tre, glibc, sqlite, openssl, expat, cairo
, perl, gtk2, python, glib, gobjectIntrospection, libevent, zlib, autoreconfHook
, mysql, postgresql, cyrus_sasl
, fetchFromGitHub, libmpack, which, fetchpatch
, fetchFromGitHub, libmpack, which, fetchpatch, writeText
}:
let
@@ -35,7 +35,9 @@ let
getLuaCPath = lib : getPath lib "so";
#define build lua package function
buildLuaPackage = callPackage ../development/lua-modules/generic lua;
buildLuaPackage = callPackage ../development/lua-modules/generic {
inherit lua writeText;
};
luarocks = callPackage ../development/tools/misc/luarocks {
inherit lua;