Merge pull request #119427 from talyz/tengine-modules
tengine: Add modules to passthru
This commit is contained in:
commit
59917dc3a9
@ -818,7 +818,7 @@ in
|
|||||||
ProtectControlGroups = true;
|
ProtectControlGroups = true;
|
||||||
RestrictAddressFamilies = [ "AF_UNIX" "AF_INET" "AF_INET6" ];
|
RestrictAddressFamilies = [ "AF_UNIX" "AF_INET" "AF_INET6" ];
|
||||||
LockPersonality = true;
|
LockPersonality = true;
|
||||||
MemoryDenyWriteExecute = !(builtins.any (mod: (mod.allowMemoryWriteExecute or false)) (optionals (cfg.package ? modules) cfg.package.modules));
|
MemoryDenyWriteExecute = !(builtins.any (mod: (mod.allowMemoryWriteExecute or false)) cfg.package.modules);
|
||||||
RestrictRealtime = true;
|
RestrictRealtime = true;
|
||||||
RestrictSUIDSGID = true;
|
RestrictSUIDSGID = true;
|
||||||
PrivateMounts = true;
|
PrivateMounts = true;
|
||||||
|
@ -142,7 +142,10 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
modules = modules;
|
modules = modules;
|
||||||
tests.nginx = nixosTests.nginx;
|
tests = {
|
||||||
|
inherit (nixosTests) nginx nginx-auth nginx-etag nginx-pubhtml nginx-sandbox nginx-sso;
|
||||||
|
variants = lib.recurseIntoAttrs nixosTests.nginx-variants;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = if meta != null then meta else {
|
meta = if meta != null then meta else {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, openssl, zlib, pcre, libxml2, libxslt
|
{ lib, stdenv, fetchFromGitHub, openssl, zlib, pcre, libxml2, libxslt
|
||||||
, substituteAll, gd, geoip, gperftools, jemalloc
|
, substituteAll, gd, geoip, gperftools, jemalloc, nixosTests
|
||||||
, withDebug ? false
|
, withDebug ? false
|
||||||
, withMail ? false
|
, withMail ? false
|
||||||
, withStream ? false
|
, withStream ? false
|
||||||
@ -111,6 +111,11 @@ stdenv.mkDerivation rec {
|
|||||||
mv $out/sbin $out/bin
|
mv $out/sbin $out/bin
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
inherit modules;
|
||||||
|
tests = nixosTests.nginx-variants.tengine;
|
||||||
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A web server based on Nginx and has many advanced features, originated by Taobao";
|
description = "A web server based on Nginx and has many advanced features, originated by Taobao";
|
||||||
homepage = "https://tengine.taobao.org";
|
homepage = "https://tengine.taobao.org";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user