Merge pull request #42687 from nh2/nginx-debug-build

nginx: Flag to build with debugging and parallel builds
This commit is contained in:
Matthew Bauer 2018-07-05 22:11:51 -04:00 committed by GitHub
commit af56538c89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
{ stdenv, fetchurl, fetchFromGitHub, openssl, zlib, pcre, libxml2, libxslt, expat
, gd, geoip
, withDebug ? false
, withStream ? true
, withMail ? false
, modules ? []
@ -44,6 +45,8 @@ stdenv.mkDerivation {
"--with-pcre-jit"
# Install destination problems
# "--with-http_perl_module"
] ++ optional withDebug [
"--with-debug"
] ++ optional withStream [
"--with-stream"
"--with-stream_geoip_module"
@ -64,6 +67,8 @@ stdenv.mkDerivation {
hardeningEnable = optional (!stdenv.isDarwin) "pie";
enableParallelBuilding = true;
postInstall = ''
mv $out/sbin $out/bin
'';