3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/nghttp3/default.nix

37 lines
882 B
Nix
Raw Normal View History

2021-11-14 15:12:35 +00:00
{ lib, stdenv, fetchFromGitHub
, autoreconfHook, pkg-config
2022-02-03 16:34:36 +00:00
, cunit, file, ncurses
2021-11-14 15:12:35 +00:00
}:
stdenv.mkDerivation rec {
pname = "nghttp3";
2022-04-28 22:45:13 +01:00
version = "0.4.0";
2021-11-14 15:12:35 +00:00
src = fetchFromGitHub {
owner = "ngtcp2";
repo = pname;
2022-04-28 22:45:13 +01:00
rev = "v${version}";
sha256 = "sha256-toGTkgJLdSLNWCPJFpT63IxF3xANbvtkhJo5NUg/ZBg=";
2021-11-14 15:12:35 +00:00
};
2022-02-03 16:34:36 +00:00
nativeBuildInputs = [ autoreconfHook pkg-config file ];
checkInputs = [ cunit ncurses ];
2021-11-14 15:12:35 +00:00
preConfigure = ''
substituteInPlace ./configure --replace /usr/bin/file ${file}/bin/file
'';
outputs = [ "out" "dev" ];
doCheck = true;
2022-02-03 16:34:36 +00:00
enableParallelBuilding = true;
2021-11-14 15:12:35 +00:00
meta = with lib; {
homepage = "https://github.com/ngtcp2/nghttp3";
description = "nghttp3 is an implementation of HTTP/3 mapping over QUIC and QPACK in C.";
license = licenses.mit;
2022-02-03 16:34:36 +00:00
platforms = platforms.unix;
2021-11-14 15:12:35 +00:00
maintainers = with maintainers; [ izorkin ];
};
}