lua*Packages.compat53: improve paths

Test case that should execute without an error:
echo "require('compat53')" | env NIX_PATH=nixpkgs=$(pwd) \
  nix-shell --pure -p lua -p lua.pkgs.compat53 --run lua
This commit is contained in:
Vladimír Čunát 2019-05-01 10:57:13 +02:00
parent 6108e63a01
commit 10237c8584
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -151,10 +151,11 @@ with self; {
cc lutf8lib.c $CFLAGS -o utf8.so
'';
# There's no need to separate *.lua and *.so, I guess? TODO: conventions?
# The hook in ../development/lua-modules/generic/default.nix
# is strict about share vs. lib for _PATH and _CPATH.
installPhase = ''
install -Dt "$out/lib/lua/${lua.luaversion}/compat53" \
compat53/*.lua *.so
install -Dt "$out/share/lua/${lua.luaversion}/compat53" compat53/*.lua
install -Dt "$out/lib/lua/${lua.luaversion}/compat53" *.so
'';
meta = with stdenv.lib; {