From b8fd75c83e87886fb57dbb43b616617430605179 Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Sun, 22 Aug 2021 15:33:14 +0200 Subject: [PATCH] add nghttp3 package definition --- pkgs/nghttp3/default.nix | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pkgs/nghttp3/default.nix diff --git a/pkgs/nghttp3/default.nix b/pkgs/nghttp3/default.nix new file mode 100644 index 0000000..e26d72a --- /dev/null +++ b/pkgs/nghttp3/default.nix @@ -0,0 +1,33 @@ +{ autoreconfHook +, lib +, stdenv +, fetchFromGitHub +, pkgconfig +}: + +stdenv.mkDerivation rec { + pname = "nghttp3"; + version = "20210817"; + + src = fetchFromGitHub { + owner = "ngtcp2"; + repo = "nghttp3"; + rev = "149319e6789dcfbe95af3c65c8a132255ef63192"; + sha256 = "18cbg39vx1aqxmk6lndw5lfkidlsr1n2vba18gdf7wn7a2rw78qv"; + }; + + outputs = [ "out" "dev" ]; + + nativeBuildInputs = [ + autoreconfHook + pkgconfig + ]; + + meta = with lib; { + description = "HTTP/3 library written in C"; + homepage = https://github.com/ngtcp2/nghttp3; + license = licenses.mit; + maintainers = with maintainers; [ royneary ]; + platforms = platforms.linux; + }; +}