nghttp2: make app optional

windows just needs the libraries & the app won’t build
This commit is contained in:
Matthew Bauer 2018-10-17 12:44:23 -05:00
parent b7e17a2efd
commit a7c8e30782

View File

@ -6,6 +6,7 @@
, enableAsioLib ? false, boost ? null
, enableGetAssets ? false, libxml2 ? null
, enableJemalloc ? false, jemalloc ? null
, enableApp ? !stdenv.hostPlatform.isWindows
}:
assert enableHpack -> jansson != null;
@ -35,8 +36,12 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
configureFlags = [ "--with-spdylay=no" "--disable-examples" "--disable-python-bindings" "--enable-app" ]
++ optional enableAsioLib "--enable-asio-lib --with-boost-libdir=${boost}/lib";
configureFlags = [
"--with-spdylay=no"
"--disable-examples"
"--disable-python-bindings"
(stdenv.lib.enableFeature enableApp "app")
] ++ optional enableAsioLib "--enable-asio-lib --with-boost-libdir=${boost}/lib";
#doCheck = true; # requires CUnit ; currently failing at test_util_localtime_date in util_test.cc