mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
php: add custom options
This commit is contained in:
parent
f80e7df143
commit
b5137de379
@ -55,6 +55,10 @@ let
|
|||||||
, tidySupport ? (config.php.tidy or false)
|
, tidySupport ? (config.php.tidy or false)
|
||||||
, argon2Support ? (config.php.argon2 or true) && (versionAtLeast version "7.2")
|
, argon2Support ? (config.php.argon2 or true) && (versionAtLeast version "7.2")
|
||||||
, libzipSupport ? (config.php.libzip or true) && (versionAtLeast version "7.3")
|
, libzipSupport ? (config.php.libzip or true) && (versionAtLeast version "7.3")
|
||||||
|
, phpdbgSupport ? config.php.phpdbg or true
|
||||||
|
, cgiSupport ? config.php.cgi or true
|
||||||
|
, cliSupport ? config.php.cli or true
|
||||||
|
, pharSupport ? config.php.phar or true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -168,7 +172,12 @@ let
|
|||||||
++ optional sodiumSupport "--with-sodium=${libsodium.dev}"
|
++ optional sodiumSupport "--with-sodium=${libsodium.dev}"
|
||||||
++ optional tidySupport "--with-tidy=${html-tidy}"
|
++ optional tidySupport "--with-tidy=${html-tidy}"
|
||||||
++ optional argon2Support "--with-password-argon2=${libargon2}"
|
++ optional argon2Support "--with-password-argon2=${libargon2}"
|
||||||
++ optional libzipSupport "--with-libzip=${libzip.dev}";
|
++ optional libzipSupport "--with-libzip=${libzip.dev}"
|
||||||
|
++ optional phpdbgSupport "--enable-phpdbg"
|
||||||
|
++ optional (!phpdbgSupport) "--disable-phpdbg"
|
||||||
|
++ optional (!cgiSupport) "--disable-cgi"
|
||||||
|
++ optional (!cliSupport) "--disable-cli"
|
||||||
|
++ optional (!pharSupport) "--disable-phar";
|
||||||
|
|
||||||
hardeningDisable = [ "bindnow" ];
|
hardeningDisable = [ "bindnow" ];
|
||||||
|
|
||||||
@ -193,6 +202,7 @@ let
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
test -d $out/etc || mkdir $out/etc
|
||||||
cp php.ini-production $out/etc/php.ini
|
cp php.ini-production $out/etc/php.ini
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user