diff --git a/pkgs/ngtcp2/default.nix b/pkgs/ngtcp2/default.nix index a2aabb1..d4f4cc4 100644 --- a/pkgs/ngtcp2/default.nix +++ b/pkgs/ngtcp2/default.nix @@ -18,6 +18,8 @@ stdenv.mkDerivation rec { outputs = [ "out" "dev" ]; + patches = [ ./gnutls_header.patch ]; + configureFlags = [ "--with-gnutls" ]; diff --git a/pkgs/ngtcp2/gnutls_header.patch b/pkgs/ngtcp2/gnutls_header.patch new file mode 100644 index 0000000..af1f65c --- /dev/null +++ b/pkgs/ngtcp2/gnutls_header.patch @@ -0,0 +1,12 @@ +diff --git a/crypto/includes/Makefile.am b/crypto/includes/Makefile.am +index 7e0589a3..56f29e34 100644 +--- a/crypto/includes/Makefile.am ++++ b/crypto/includes/Makefile.am +@@ -26,3 +26,7 @@ nobase_include_HEADERS = ngtcp2/ngtcp2_crypto.h + if HAVE_OPENSSL + nobase_include_HEADERS += ngtcp2/ngtcp2_crypto_openssl.h + endif ++ ++if HAVE_GNUTLS ++nobase_include_HEADERS += ngtcp2/ngtcp2_crypto_gnutls.h ++endif