diff options
author | c0bw3b <c0bw3b@users.noreply.github.com> | 2016-12-13 00:45:05 +0100 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2017-01-06 21:03:11 +0100 |
commit | 6d3183e7daa07d730d644803b842c0696e02f01e (patch) | |
tree | 157ac092c06646a0cb8326dda2c378515b927ccb /pkgs/development/libraries/nghttp2 | |
parent | f70f898dae54a2cf3dd0f3f4ebaacbd4f57f2a59 (diff) | |
download | nixpkgs-6d3183e7daa07d730d644803b842c0696e02f01e.tar nixpkgs-6d3183e7daa07d730d644803b842c0696e02f01e.tar.gz nixpkgs-6d3183e7daa07d730d644803b842c0696e02f01e.tar.bz2 nixpkgs-6d3183e7daa07d730d644803b842c0696e02f01e.tar.lz nixpkgs-6d3183e7daa07d730d644803b842c0696e02f01e.tar.xz nixpkgs-6d3183e7daa07d730d644803b842c0696e02f01e.tar.zst nixpkgs-6d3183e7daa07d730d644803b842c0696e02f01e.zip |
nghttp2: refactor (close #21029)
Turning the dependencies unrelated to the base libnghttp2 into proper options. vcunat modified the commit slightly.
Diffstat (limited to 'pkgs/development/libraries/nghttp2')
-rw-r--r-- | pkgs/development/libraries/nghttp2/default.nix | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/pkgs/development/libraries/nghttp2/default.nix b/pkgs/development/libraries/nghttp2/default.nix index f7a026c52d4..0697b05c0a5 100644 --- a/pkgs/development/libraries/nghttp2/default.nix +++ b/pkgs/development/libraries/nghttp2/default.nix @@ -2,9 +2,19 @@ # Optional Dependencies , openssl ? null, libev ? null, zlib ? null -#, jansson ? null, boost ? null, libxml2 ? null, jemalloc ? null +, enableHpack ? false, jansson ? null +, enableAsioLib ? false, boost ? null +, enableGetAssets ? false, libxml2 ? null +, enableJemalloc ? false, jemalloc ? null }: +assert enableHpack -> jansson != null; +assert enableAsioLib -> boost != null; +assert enableGetAssets -> libxml2 != null; +assert enableJemalloc -> jemalloc != null; + +with { inherit (stdenv.lib) optional; }; + stdenv.mkDerivation rec { name = "nghttp2-${version}"; version = "1.17.0"; @@ -18,7 +28,11 @@ stdenv.mkDerivation rec { outputs = [ "out" "dev" "lib" ]; nativeBuildInputs = [ pkgconfig ]; - buildInputs = [ openssl libev zlib ]; + buildInputs = [ openssl libev zlib ] + ++ optional enableHpack jansson + ++ optional enableAsioLib boost + ++ optional enableGetAssets libxml2 + ++ optional enableJemalloc jemalloc; enableParallelBuilding = true; |