mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 07:00:43 +00:00
torch: Read LUA_PATH and LUA_CPATH set by users
This commit is contained in:
parent
f499f61c85
commit
1b05139414
|
@ -117,8 +117,10 @@ let
|
|||
wrapProgram $p \
|
||||
--set LD_LIBRARY_PATH "${lib.makeSearchPath "lib" 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'" \
|
||||
--set LUA_CPATH "'$LUA_CPATH;$out/lib/lua/${luajit.luaversion}/?.so;$out/lib/lua/${luajit.luaversion}/?/init.so'"
|
||||
--suffix LUA_PATH ';' "\"$LUA_PATH\"" \
|
||||
--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
|
||||
|
||||
eval "$postInstall"
|
||||
|
|
Loading…
Reference in a new issue