1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/nghttp2/default.nix

39 lines
1.2 KiB
Nix
Raw Normal View History

2015-05-01 22:35:56 +01:00
{ stdenv, fetchurl, pkgconfig
# Optional Dependencies
2015-05-01 22:35:56 +01:00
, openssl ? null, libev ? null, zlib ? null, jansson ? null, boost ? null
, libxml2 ? null, jemalloc ? null
}:
stdenv.mkDerivation rec {
name = "nghttp2-${version}";
version = "1.9.2";
2015-05-01 22:35:56 +01:00
# Don't use fetchFromGitHub since this needs a bootstrap curl
src = fetchurl {
2016-04-11 17:22:28 +01:00
url = "https://github.com/nghttp2/nghttp2/releases/download/v${version}/nghttp2-${version}.tar.bz2";
sha256 = "1jnms0mmf73cwdqvbzpdyi974f8xq7p8bxgba2ippw70pz8y0ac0";
2015-05-01 22:35:56 +01:00
};
# Configure script searches for a symbol which does not exist in jemalloc on Darwin
# Reported upstream in https://github.com/tatsuhiro-t/nghttp2/issues/233
postPatch = if stdenv.isDarwin && jemalloc != null then ''
substituteInPlace configure --replace "malloc_stats_print" "je_malloc_stats_print"
'' else null;
outputs = [ "dev" "out" "lib" ];
2015-05-01 22:35:56 +01:00
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ openssl libev zlib ];
2015-05-01 22:35:56 +01:00
enableParallelBuilding = true;
2015-05-01 22:35:56 +01:00
meta = with stdenv.lib; {
2015-05-01 22:35:56 +01:00
homepage = http://nghttp2.org/;
description = "A C implementation of HTTP/2";
2015-05-01 22:35:56 +01:00
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ wkennington ];
};
}