3
0
Fork 0
forked from mirrors/nixpkgs

nginxQuic: init

This commit is contained in:
Maciej Krüger 2021-04-18 18:49:42 +02:00
parent 11838150a7
commit 4a3bb18683
No known key found for this signature in database
GPG key ID: 0D948CE19CF49C5F
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,21 @@
{ callPackage, fetchhg, boringssl, ... } @ args:
callPackage ./generic.nix args {
src = fetchhg {
url = "https://hg.nginx.org/nginx-quic";
rev = "47a43b011dec"; # branch=quic
sha256 = "1d4d1v4zbnf5qlfl79pi7sficn1h7zm6kk7llm24yyhlsvssz10x";
};
preConfigure = ''
ln -s auto/configure configure
'';
configureFlags = [
"--with-http_v3_module"
"--with-http_quic_module"
"--with-stream_quic_module"
];
version = "quic";
}

View file

@ -18679,6 +18679,15 @@ in
nginx = nginxStable;
nginxQuic = callPackage ../servers/http/nginx/quic.nix {
withPerl = false;
# We don't use `with` statement here on purpose!
# See https://github.com/NixOS/nixpkgs/pull/10474/files#r42369334
modules = [ nginxModules.rtmp nginxModules.dav nginxModules.moreheaders ];
# Use latest boringssl to allow http3 support
openssl = boringssl;
};
nginxStable = callPackage ../servers/http/nginx/stable.nix {
withPerl = false;
# We don't use `with` statement here on purpose!