diff options
author | Richard Ipsum <richardipsum@fastmail.co.uk> | 2017-07-08 19:42:16 +0100 |
---|---|---|
committer | Richard Ipsum <richardipsum@fastmail.co.uk> | 2017-07-08 23:09:32 +0100 |
commit | 32dec43701673e25341d8575ba05dfd9d1ba0e5e (patch) | |
tree | 7cecb74d74e0f845ad4ed0a1dbbb212f8972e620 | |
parent | 157b5bd1f0ce284bc258c5442e98f56ff65829da (diff) | |
download | nixlib-32dec43701673e25341d8575ba05dfd9d1ba0e5e.tar nixlib-32dec43701673e25341d8575ba05dfd9d1ba0e5e.tar.gz nixlib-32dec43701673e25341d8575ba05dfd9d1ba0e5e.tar.bz2 nixlib-32dec43701673e25341d8575ba05dfd9d1ba0e5e.tar.lz nixlib-32dec43701673e25341d8575ba05dfd9d1ba0e5e.tar.xz nixlib-32dec43701673e25341d8575ba05dfd9d1ba0e5e.tar.zst nixlib-32dec43701673e25341d8575ba05dfd9d1ba0e5e.zip |
lrexlib: 2.7.2 (broken) -> 2.8.0
The shared objects are not available in 'pcre.dev', so to build the rex_pcre.so file we must specify 'pcre.out' as the directory to obtain shared objects from, 'pcre.dev' is still needed for the header files though.
-rw-r--r-- | pkgs/top-level/lua-packages.nix | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/pkgs/top-level/lua-packages.nix b/pkgs/top-level/lua-packages.nix index 71aef7544dd1..f33b397958ca 100644 --- a/pkgs/top-level/lua-packages.nix +++ b/pkgs/top-level/lua-packages.nix @@ -311,24 +311,23 @@ let lrexlib = buildLuaPackage rec { name = "lrexlib-${version}"; - version = "2.7.2"; + version = "2.8.0"; src = fetchzip { - url = "https://github.com/rrthomas/lrexlib/archive/150c251be57c4e569da0f48bf6b01fbca97179fe.zip"; - sha256 = "0acb3258681bjq61piz331r99bdff6cnkjaigq5phg3699iz5h75"; + url = "https://github.com/rrthomas/lrexlib/archive/rel-2-8-0.zip"; + sha256 = "1c62ny41b1ih6iddw5qn81gr6dqwfffzdp7q6m8x09zzcdz78zhr"; }; buildInputs = [ unzip luastdlib pcre luarocks oniguruma gnulib tre glibc ]; buildPhase = let - luaVariable = "LUA_PATH=${luastdlib}/share/lua/${lua.luaversion}/?.lua"; + luaVariable = ''LUA_PATH="${luastdlib}/share/lua/${lua.luaversion}/?/init.lua;${luastdlib}/share/lua/${lua.luaversion}/?.lua"''; - pcreVariable = "PCRE_DIR=${pcre.dev}"; + pcreVariable = "PCRE_DIR=${pcre.out} PCRE_INCDIR=${pcre.dev}/include"; onigVariable = "ONIG_DIR=${oniguruma}"; gnuVariable = "GNU_INCDIR=${gnulib}/lib"; treVariable = "TRE_DIR=${tre}"; posixVariable = "POSIX_DIR=${glibc.dev}"; in '' - sed -e 's@$(LUAROCKS) $(LUAROCKS_COMMAND) $$i;@$(LUAROCKS) $(LUAROCKS_COMMAND) $$i ${pcreVariable} ${onigVariable} ${gnuVariable} ${treVariable} ${posixVariable};@' \ - -i Makefile + sed -e 's@$(LUAROCKS) $(LUAROCKS_COMMAND) $$i;@$(LUAROCKS) $(LUAROCKS_COMMAND) $$i ${pcreVariable} ${onigVariable} ${gnuVariable} ${treVariable} ${posixVariable};@' -i Makefile ${luaVariable} make ''; @@ -341,7 +340,6 @@ let homepage = "https://github.com/lua-stdlib/lua-stdlib/"; platforms = stdenv.lib.platforms.linux; license = stdenv.lib.licenses.mit; - broken = true; }; }; |