Skip to content

Commit

Permalink
luaPackages.luv: add libluv output
Browse files Browse the repository at this point in the history
  • Loading branch information
gloaming committed Sep 16, 2019
1 parent 9873cc4 commit 609446b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pkgs/development/lua-modules/overrides.nix
Expand Up @@ -276,8 +276,23 @@ with super;
propagatedBuildInputs = [
pkgs.libuv
];

passthru = {
libluv = self.luv.override({
preBuild = self.luv.preBuild + ''
sed -i 's,\(option(BUILD_MODULE.*\)ON,\1OFF,' CMakeLists.txt
sed -i 's,\(option(BUILD_SHARED_LIBS.*\)OFF,\1ON,' CMakeLists.txt
sed -i 's,${"\${INSTALL_INC_DIR}"},${placeholder "out"}/include/luv,' CMakeLists.txt
'';
postInstall = with builtins; let ver = head (split "-" lua.pkgs.luv.version); in ''
ln -s $out/lib/lua/${lua.luaversion}/libluv.so.${ver} $out/lib/lua/${lua.luaversion}/libluv.so.1
ln -s $out/lib/lua/${lua.luaversion}/libluv.so.1 $out/lib/lua/${lua.luaversion}/libluv.so
'';
});
};
});


rapidjson = super.rapidjson.override({
preBuild = ''
sed -i '/set(CMAKE_CXX_FLAGS/d' CMakeLists.txt
Expand Down

0 comments on commit 609446b

Please sign in to comment.