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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
888 B
Nix
Raw Normal View History

2021-11-14 15:12:35 +00:00
{ lib, stdenv, fetchFromGitHub
2022-05-19 20:44:57 +01:00
, autoreconfHook, pkg-config, file
, cunit, ncurses
2021-11-14 15:12:35 +00:00
}:
stdenv.mkDerivation rec {
pname = "nghttp3";
2022-09-01 23:03:07 +01:00
version = "0.7.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}";
2022-09-01 23:03:07 +01:00
sha256 = "sha256-MZ5ynaGZTzO2w0hGHII19PFC0+kjfd+IlcsenGGgMgg=";
2021-11-14 15:12:35 +00:00
};
2022-05-19 20:44:57 +01:00
outputs = [ "out" "dev" "doc" ];
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
'';
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 ];
};
}