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
|
||||
, modules ? []
|
||||
, hardening ? true
|
||||
, version, sha256, ...
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation {
|
||||
name = "nginx-${version}";
|
||||
version = "1.10.1";
|
||||
|
||||
src = fetchurl {
|
||||
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 { };
|
||||
|
||||
nginx = callPackage ../servers/http/nginx {
|
||||
nginx = callPackage ../servers/http/nginx/stable.nix {
|
||||
# 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 ];
|
||||
};
|
||||
# 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 { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue