From 61c48d9c45254e36e4ecb58ce7c263dda13bd9a0 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 31 Jan 2017 05:05:07 +0000 Subject: [PATCH] luaPackages.luaexpat: fix build on darwin --- pkgs/top-level/lua-packages.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/lua-packages.nix b/pkgs/top-level/lua-packages.nix index 3db9e66a98ee..ecf6d11547d0 100644 --- a/pkgs/top-level/lua-packages.nix +++ b/pkgs/top-level/lua-packages.nix @@ -112,6 +112,11 @@ let buildInputs = [ expat ]; + preConfigure = stdenv.lib.optionalString stdenv.isDarwin '' + substituteInPlace Makefile \ + --replace '-shared' '-bundle -undefined dynamic_lookup -all_load' + ''; + preBuild = '' makeFlagsArray=( LUA_LDIR="$out/share/lua/${lua.luaversion}" @@ -121,7 +126,7 @@ let meta = { homepage = "http://matthewwild.co.uk/projects/luaexpat"; - hydraPlatforms = stdenv.lib.platforms.linux; + hydraPlatforms = stdenv.lib.platforms.unix; maintainers = [ stdenv.lib.maintainers.flosse ]; }; };