From b0f70785c2b058d272dc50b9a5369b450a9a1b4f Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Mon, 15 Mar 2021 19:47:50 +0100 Subject: [PATCH] add gnutls header patch --- pkgs/ngtcp2/default.nix | 2 ++ pkgs/ngtcp2/gnutls_header.patch | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 pkgs/ngtcp2/gnutls_header.patch 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