summary refs log tree commit diff
path: root/pkgs/development/libraries/ngtcp2
diff options
context:
space:
mode:
authorIzorkin <izorkin@elven.pw>2021-11-14 18:17:29 +0300
committerIzorkin <izorkin@elven.pw>2021-11-29 13:13:27 +0300
commit89dd3384d1e011916130961c6499f1f90ad3d8a2 (patch)
tree3c7ef30c95ba085d364b1941fe17078ba63ecbaa /pkgs/development/libraries/ngtcp2
parent955e944d95cfc34ffe941afebdd2894f7641b13d (diff)
downloadnixpkgs-89dd3384d1e011916130961c6499f1f90ad3d8a2.tar
nixpkgs-89dd3384d1e011916130961c6499f1f90ad3d8a2.tar.gz
nixpkgs-89dd3384d1e011916130961c6499f1f90ad3d8a2.tar.bz2
nixpkgs-89dd3384d1e011916130961c6499f1f90ad3d8a2.tar.lz
nixpkgs-89dd3384d1e011916130961c6499f1f90ad3d8a2.tar.xz
nixpkgs-89dd3384d1e011916130961c6499f1f90ad3d8a2.tar.zst
nixpkgs-89dd3384d1e011916130961c6499f1f90ad3d8a2.zip
ngtcp2: init at unstable-2021-11-10
Diffstat (limited to 'pkgs/development/libraries/ngtcp2')
-rw-r--r--pkgs/development/libraries/ngtcp2/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/libraries/ngtcp2/default.nix b/pkgs/development/libraries/ngtcp2/default.nix
new file mode 100644
index 00000000000..0d4002ca10d
--- /dev/null
+++ b/pkgs/development/libraries/ngtcp2/default.nix
@@ -0,0 +1,36 @@
+{ lib, stdenv, fetchFromGitHub
+, autoreconfHook, pkg-config
+, cunit, file
+, jemalloc, libev, nghttp3, quictls
+}:
+
+stdenv.mkDerivation rec {
+  pname = "ngtcp2";
+  version = "unstable-2021-11-10";
+
+  src = fetchFromGitHub {
+    owner = "ngtcp2";
+    repo = pname;
+    rev = "7039808c044152c14b44046468bd16249b4d7048";
+    sha256 = "1cjsky24f6fazw9b1r6w9cgp09vi8wp99sv76gg2b1r8ic3hgq23";
+  };
+
+  nativeBuildInputs = [ autoreconfHook pkg-config cunit file ];
+  buildInputs = [ jemalloc libev nghttp3 quictls ];
+
+  preConfigure = ''
+    substituteInPlace ./configure --replace /usr/bin/file ${file}/bin/file
+  '';
+
+  outputs = [ "out" "dev" ];
+
+  doCheck = true;
+
+  meta = with lib; {
+    homepage = "https://github.com/ngtcp2/ngtcp2";
+    description = "ngtcp2 project is an effort to implement QUIC protocol which is now being discussed in IETF QUICWG for its standardization.";
+    license = licenses.mit;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ izorkin ];
+  };
+}