Merge pull request #42687 from nh2/nginx-debug-build
nginx: Flag to build with debugging and parallel builds
This commit is contained in:
commit
af56538c89
@ -1,5 +1,6 @@
|
|||||||
{ stdenv, fetchurl, fetchFromGitHub, openssl, zlib, pcre, libxml2, libxslt, expat
|
{ stdenv, fetchurl, fetchFromGitHub, openssl, zlib, pcre, libxml2, libxslt, expat
|
||||||
, gd, geoip
|
, gd, geoip
|
||||||
|
, withDebug ? false
|
||||||
, withStream ? true
|
, withStream ? true
|
||||||
, withMail ? false
|
, withMail ? false
|
||||||
, modules ? []
|
, modules ? []
|
||||||
@ -44,6 +45,8 @@ stdenv.mkDerivation {
|
|||||||
"--with-pcre-jit"
|
"--with-pcre-jit"
|
||||||
# Install destination problems
|
# Install destination problems
|
||||||
# "--with-http_perl_module"
|
# "--with-http_perl_module"
|
||||||
|
] ++ optional withDebug [
|
||||||
|
"--with-debug"
|
||||||
] ++ optional withStream [
|
] ++ optional withStream [
|
||||||
"--with-stream"
|
"--with-stream"
|
||||||
"--with-stream_geoip_module"
|
"--with-stream_geoip_module"
|
||||||
@ -64,6 +67,8 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
hardeningEnable = optional (!stdenv.isDarwin) "pie";
|
hardeningEnable = optional (!stdenv.isDarwin) "pie";
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mv $out/sbin $out/bin
|
mv $out/sbin $out/bin
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user