nginx: refactor and add mainline version
Upstream calls the unstable version mainline.
This commit is contained in:
parent
febcd39afa
commit
b5daad4268
6 changed files with 24 additions and 6 deletions
|
@ -3,17 +3,17 @@
|
||||||
, withStream ? false
|
, withStream ? false
|
||||||
, modules ? []
|
, modules ? []
|
||||||
, hardening ? true
|
, hardening ? true
|
||||||
|
, version, sha256, ...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation {
|
||||||
name = "nginx-${version}";
|
name = "nginx-${version}";
|
||||||
version = "1.10.1";
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://nginx.org/download/nginx-${version}.tar.gz";
|
url = "http://nginx.org/download/nginx-${version}.tar.gz";
|
||||||
sha256 = "00d8hxj8453c7989qd7z4f1mjp0k3ib8k29i1qyf11b4ar35ilqz";
|
inherit sha256;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
6
pkgs/servers/http/nginx/mainline.nix
Normal file
6
pkgs/servers/http/nginx/mainline.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{ callPackage, ... }@args:
|
||||||
|
|
||||||
|
callPackage ./generic.nix (args // {
|
||||||
|
version = "1.11.2";
|
||||||
|
sha256 = "02khwad28ar2jjdfssysx262bgwgirm9967gnfhw9ga7wvipncm0";
|
||||||
|
})
|
6
pkgs/servers/http/nginx/stable.nix
Normal file
6
pkgs/servers/http/nginx/stable.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{ callPackage, ... } @ args:
|
||||||
|
|
||||||
|
callPackage ./generic.nix (args // {
|
||||||
|
version = "1.10.1";
|
||||||
|
sha256 = "00d8hxj8453c7989qd7z4f1mjp0k3ib8k29i1qyf11b4ar35ilqz";
|
||||||
|
})
|
|
@ -10208,13 +10208,19 @@ in
|
||||||
|
|
||||||
neard = callPackage ../servers/neard { };
|
neard = callPackage ../servers/neard { };
|
||||||
|
|
||||||
nginx = callPackage ../servers/http/nginx {
|
nginx = callPackage ../servers/http/nginx/stable.nix {
|
||||||
# We don't use `with` statement here on purpose!
|
# We don't use `with` statement here on purpose!
|
||||||
# See https://github.com/NixOS/nixpkgs/pull/10474/files#r42369334
|
# See https://github.com/NixOS/nixpkgs/pull/10474/files#r42369334
|
||||||
modules = [ nginxModules.rtmp nginxModules.dav nginxModules.moreheaders ];
|
modules = [ nginxModules.rtmp nginxModules.dav nginxModules.moreheaders ];
|
||||||
};
|
};
|
||||||
# nginxUnstable currently points to stable because that's newest:
|
|
||||||
nginxUnstable = nginx;
|
nginxMainline = callPackage ../servers/http/nginx/mainline.nix {
|
||||||
|
# We don't use `with` statement here on purpose!
|
||||||
|
# See https://github.com/NixOS/nixpkgs/pull/10474/files#r42369334
|
||||||
|
modules = [ nginxModules.dav nginxModules.moreheaders ];
|
||||||
|
};
|
||||||
|
|
||||||
|
nginxUnstable = nginxMainline;
|
||||||
|
|
||||||
nginxModules = callPackage ../servers/http/nginx/modules.nix { };
|
nginxModules = callPackage ../servers/http/nginx/modules.nix { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue