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; + }; +}