Skip to content

Commit

Permalink
luaPackages.luaexpat: fix build on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
vbgl committed Jan 31, 2017
1 parent 1128726 commit 61c48d9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkgs/top-level/lua-packages.nix
Expand Up @@ -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}"
Expand All @@ -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 ];
};
};
Expand Down

0 comments on commit 61c48d9

Please sign in to comment.