mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
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
|
||||
, 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
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user