diff options
author | Vladimír Čunát <v@cunat.cz> | 2019-05-01 11:08:08 +0200 |
---|---|---|
committer | Vladimír Čunát <v@cunat.cz> | 2019-05-01 11:08:08 +0200 |
commit | 90f816174597f4220652ff1b4cc10271978a49c2 (patch) | |
tree | 7114deb5b456048ba2d9c539317212d16cbea104 /pkgs/top-level/lua-packages.nix | |
parent | 10237c8584abba54df0f2765d250cad551e26882 (diff) |
lua*Packages.luasec: improve paths
Test case that should execute without an error:
echo "require('ssl.https')" | env NIX_PATH=nixpkgs=$(pwd) \
nix-shell --pure -p lua -p lua.pkgs.luasec --run lua
Diffstat (limited to 'pkgs/top-level/lua-packages.nix')
-rw-r--r-- | pkgs/top-level/lua-packages.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/top-level/lua-packages.nix b/pkgs/top-level/lua-packages.nix index 0b7ba9dfd611..83ff1d22e5ec 100644 --- a/pkgs/top-level/lua-packages.nix +++ b/pkgs/top-level/lua-packages.nix @@ -420,12 +420,13 @@ with self; { sha256 = "0wv8l7f7na7kw5xn8mjik2wpxbizl7zvvp5s7fcwvz9kl5jdpk5b"; }; + propagatedBuildInputs = [ luasocket ]; buildInputs = [ openssl ]; preBuild = '' makeFlagsArray=( ${platformString} - LUAPATH="$out/lib/lua/${lua.luaversion}" + LUAPATH="$out/share/lua/${lua.luaversion}" LUACPATH="$out/lib/lua/${lua.luaversion}" INC_PATH="-I${lua}/include" LIB_PATH="-L$out/lib"); |