1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 15:11:35 +00:00

torch: Read LUA_PATH and LUA_CPATH set by users

This commit is contained in:
Sergey Mironov 2016-03-16 23:52:09 +03:00
parent f499f61c85
commit 1b05139414

View file

@ -117,8 +117,10 @@ let
wrapProgram $p \ wrapProgram $p \
--set LD_LIBRARY_PATH "${lib.makeSearchPath "lib" runtimeDeps_}" \ --set LD_LIBRARY_PATH "${lib.makeSearchPath "lib" runtimeDeps_}" \
--set PATH "${lib.makeSearchPath "bin" runtimeDeps_}" \ --set PATH "${lib.makeSearchPath "bin" runtimeDeps_}" \
--set LUA_PATH "'$LUA_PATH;$out/share/lua/${luajit.luaversion}/?.lua;$out/share/lua/${luajit.luaversion}/?/init.lua'" \ --suffix LUA_PATH ';' "\"$LUA_PATH\"" \
--set LUA_CPATH "'$LUA_CPATH;$out/lib/lua/${luajit.luaversion}/?.so;$out/lib/lua/${luajit.luaversion}/?/init.so'" --suffix LUA_PATH ';' "\"$out/share/lua/${luajit.luaversion}/?.lua;$out/share/lua/${luajit.luaversion}/?/init.lua\"" \
--suffix LUA_CPATH ';' "\"$LUA_CPATH\"" \
--suffix LUA_CPATH ';' "\"$out/lib/lua/${luajit.luaversion}/?.so;$out/lib/lua/${luajit.luaversion}/?/init.so\""
done done
eval "$postInstall" eval "$postInstall"