make all dependecies build by working around libevhtp issues
This commit is contained in:
parent
990d57ca20
commit
d554161784
|
@ -18,7 +18,11 @@ stdenv.mkDerivation rec {
|
|||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ libevent pth openssl ];
|
||||
propagatedBuildInputs = [ oniguruma ];
|
||||
cmakeFlags = [ "-DEVHTP_DISABLE_SSL=OFF" "-DEVHTP_BUILD_SHARED=ON" ];
|
||||
# fix pkgconfig librarypath generation
|
||||
patches = [ ./pkgconfig-librarypath.patch ];
|
||||
#cmakeFlags = [ "-DEVHTP_DISABLE_SSL=OFF" "-DEVHTP_BUILD_SHARED=ON" ];
|
||||
cmakeFlags = [ "-DEVHTP_DISABLE_SSL=OFF" "-DBUILD_SHARED_LIBS=ON" ];
|
||||
outputs = [ "dev" "out" ];
|
||||
|
||||
meta = {
|
||||
description = "Create extremely-fast and secure embedded HTTP servers with ease.";
|
||||
|
|
20
libevhtp/pkgconfig-librarypath.patch
Normal file
20
libevhtp/pkgconfig-librarypath.patch
Normal file
|
@ -0,0 +1,20 @@
|
|||
Author: Trolli Schmittlauch <t.schmittlauch@orlives.de>
|
||||
Date: Sat Sep 14 20:32:03 2019 +0200
|
||||
|
||||
fix #143 by setting LIB_INSTALL_DIR CMake var
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 481ddd0..833ddf9 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -225,6 +225,10 @@ set(include_install_dir "include")
|
||||
|
||||
set(generated_dir "${CMAKE_CURRENT_BINARY_DIR}/generated")
|
||||
|
||||
+if (NOT LIB_INSTALL_DIR)
|
||||
+ set (LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib")
|
||||
+endif (NOT LIB_INSTALL_DIR)
|
||||
+
|
||||
# Configuration
|
||||
set(version_config "${generated_dir}/${PROJECT_NAME}ConfigVersion.cmake")
|
||||
set(project_config "${generated_dir}/${PROJECT_NAME}Config.cmake")
|
Loading…
Reference in a new issue