luaPackages.libluv: fix darwin build

libluv was recently converted to a pure cmake package and now there's
nothing lua related in the build. However an old workaround to force
linking against lua on darwin remains. Clean this up.
This commit is contained in:
Andrew Childs 2022-04-04 16:29:52 +09:00 committed by Matthieu Coudron
parent 974ce2dffa
commit c8151fe657

View file

@ -296,9 +296,6 @@ with prev;
buildInputs = [ pkgs.libuv ];
nativeBuildInputs = [ pkgs.pkg-config pkgs.fixDarwinDylibNames pkgs.cmake ];
# Fixup linking libluv.dylib, for some reason it's not linked against lua correctly.
NIX_LDFLAGS = pkgs.lib.optionalString pkgs.stdenv.isDarwin
(if isLuaJIT then "-lluajit-${lua.luaversion}" else "-llua");
};
luv = prev.lib.overrideLuarocks prev.luv (drv: {