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
925 B
Nix
Raw Normal View History

2021-11-14 16:12:35 +01:00
{ lib, stdenv, fetchFromGitHub
, autoreconfHook, pkg-config
2022-02-03 17:34:36 +01:00
, cunit, file, ncurses
2021-11-14 16:12:35 +01:00
}:
stdenv.mkDerivation rec {
pname = "nghttp3";
version = "unstable-2021-12-22";
2021-11-14 16:12:35 +01:00
src = fetchFromGitHub {
owner = "ngtcp2";
repo = pname;
rev = "8d8184acf850b06b53157bba39022bc7b7b5f1cd";
sha256 = "sha256-pV1xdQa5RBz17jDINC2uN1Q+jpa2edDwqTqf8D5VU3E=";
2021-11-14 16:12:35 +01:00
};
2022-02-03 17:34:36 +01:00
nativeBuildInputs = [ autoreconfHook pkg-config file ];
checkInputs = [ cunit ncurses ];
2021-11-14 16:12:35 +01:00
preConfigure = ''
substituteInPlace ./configure --replace /usr/bin/file ${file}/bin/file
'';
outputs = [ "out" "dev" ];
doCheck = true;
2022-02-03 17:34:36 +01:00
enableParallelBuilding = true;
2021-11-14 16:12:35 +01: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 17:34:36 +01:00
platforms = platforms.unix;
2021-11-14 16:12:35 +01:00
maintainers = with maintainers; [ izorkin ];
};
}