summary refs log tree commit diff
path: root/pkgs/top-level/lua-packages.nix
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2017-01-31 05:05:07 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-01-31 05:12:16 +0000
commit61c48d9c45254e36e4ecb58ce7c263dda13bd9a0 (patch)
tree7ec8dcfb0c9322d2696fdb0dab82ea531d6ff915 /pkgs/top-level/lua-packages.nix
parent1128726064bb02d05486e8f9c0d95d1f8e0b0a6c (diff)
downloadnixlib-61c48d9c45254e36e4ecb58ce7c263dda13bd9a0.tar
nixlib-61c48d9c45254e36e4ecb58ce7c263dda13bd9a0.tar.gz
nixlib-61c48d9c45254e36e4ecb58ce7c263dda13bd9a0.tar.bz2
nixlib-61c48d9c45254e36e4ecb58ce7c263dda13bd9a0.tar.lz
nixlib-61c48d9c45254e36e4ecb58ce7c263dda13bd9a0.tar.xz
nixlib-61c48d9c45254e36e4ecb58ce7c263dda13bd9a0.tar.zst
nixlib-61c48d9c45254e36e4ecb58ce7c263dda13bd9a0.zip
luaPackages.luaexpat: fix build on darwin
Diffstat (limited to 'pkgs/top-level/lua-packages.nix')
-rw-r--r--pkgs/top-level/lua-packages.nix7
1 files changed, 6 insertions, 1 deletions
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 ];
     };
   };