nginxQuic: init
This commit is contained in:
parent
11838150a7
commit
4a3bb18683
21
pkgs/servers/http/nginx/quic.nix
Normal file
21
pkgs/servers/http/nginx/quic.nix
Normal 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";
|
||||
}
|
|
@ -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!
|
||||
|
|
Loading…
Reference in a new issue