-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #188383: ngtcp2-gnutls: init at 0.7.0 and use in knot-dns
- Loading branch information
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ lib, stdenv, fetchFromGitHub | ||
, autoreconfHook, pkg-config | ||
, gnutls | ||
, cunit, ncurses | ||
}: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "ngtcp2"; | ||
version = "0.7.0"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "ngtcp2"; | ||
repo = "ngtcp2"; | ||
rev = "v${version}"; | ||
sha256 = "sha256-REAN5TW0miWXI3HFxtW3znTKTrhsBbNqu1VfjC2w0no="; | ||
}; | ||
|
||
outputs = [ "out" "dev" ]; | ||
|
||
nativeBuildInputs = [ autoreconfHook pkg-config ]; | ||
buildInputs = [ gnutls ]; | ||
|
||
configureFlags = [ "--with-gnutls=yes" ]; | ||
enableParallelBuilding = true; | ||
|
||
doCheck = true; | ||
checkInputs = [ cunit ] | ||
++ lib.optional stdenv.isDarwin ncurses; | ||
|
||
meta = with lib; { | ||
homepage = "https://github.com/ngtcp2/ngtcp2"; | ||
description = "an effort to implement RFC9000 QUIC protocol."; | ||
license = licenses.mit; | ||
platforms = platforms.unix; | ||
maintainers = with maintainers; [ vcunat/* for knot-dns */ ]; | ||
}; | ||
} | ||
|
||
/* | ||
Why split from ./default.nix? | ||
ngtcp2 libs contain helpers to plug into various crypto libs (gnutls, patched openssl, ...). | ||
Building multiple of them while keeping closures separable would be relatively complicated. | ||
Separating the builds is easier for now; the missed opportunity to share the 0.3--0.4 MB | ||
library isn't such a big deal. | ||
Moreover upstream still commonly does incompatible changes, so agreeing | ||
on a single version might be hard sometimes. That's why it seemed simpler | ||
to completely separate the nix expressions, too. | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters