3
0
Fork 0
forked from mirrors/nixpkgs

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
This commit is contained in:
Vladimír Čunát 2019-05-01 11:08:08 +02:00
parent 10237c8584
commit 90f8161745
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -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");