Something went wrong. Try again.
lol
Something went wrong. Try again.
722 B · 42 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243{ lib, cmake, fixDarwinDylibNames, isLuaJIT, libuv, lua, stdenv,}:
stdenv.mkDerivation { pname = "libluv"; inherit (lua.pkgs.luv) version src meta;
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" "-DBUILD_MODULE=OFF" "-DWITH_SHARED_LIBUV=ON" "-DLUA_BUILD_TYPE=System" "-DWITH_LUA_ENGINE=${if isLuaJIT then "LuaJit" else "Lua"}" ];
# to make sure we dont use bundled deps prePatch = '' rm -rf deps/lua deps/luajit deps/libuv '';
buildInputs = [ libuv lua ];
nativeBuildInputs = [ cmake ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ fixDarwinDylibNames ];
passthru.tests = { # Test luv too luv = lua.pkgs.luv.passthru.tests.test; };}