luaPackages.luv: add libluv output

Co-authored-by: Roman Volosatovs <rvolosatovs@riseup.net>
This commit is contained in:
Craig Hall 2019-08-01 12:53:56 +01:00 committed by Roman Volosatovs
parent 6bdaca51e8
commit 93e25e8b00
No known key found for this signature in database
GPG key ID: 2660C5FDCEBE6F87

View file

@ -276,8 +276,19 @@ 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
'';
});
};
});
rapidjson = super.rapidjson.override({
preBuild = ''
sed -i '/set(CMAKE_CXX_FLAGS/d' CMakeLists.txt