treewide: *inputs are lists
This commit is contained in:
committed by
Jan Tojnar
parent
01e8c64988
commit
760e23136a
@@ -95,8 +95,8 @@ let
|
||||
++ optional postgresqlSupport postgresql
|
||||
++ optional pdo_odbcSupport unixODBC
|
||||
++ optional pdo_pgsqlSupport postgresql
|
||||
++ optional pdo_mysqlSupport mysqlBuildInputs
|
||||
++ optional mysqliSupport mysqlBuildInputs
|
||||
++ optionals pdo_mysqlSupport mysqlBuildInputs
|
||||
++ optionals mysqliSupport mysqlBuildInputs
|
||||
++ optional gmpSupport gmp
|
||||
++ optional gettextSupport gettext
|
||||
++ optional intlSupport icu
|
||||
@@ -109,14 +109,14 @@ let
|
||||
++ optional libzipSupport libzip
|
||||
++ optional valgrindSupport valgrind;
|
||||
|
||||
CXXFLAGS = optional stdenv.cc.isClang "-std=c++11";
|
||||
CXXFLAGS = optionalString stdenv.cc.isClang "-std=c++11";
|
||||
|
||||
configureFlags = [
|
||||
"--with-config-file-scan-dir=/etc/php.d"
|
||||
]
|
||||
++ optional (versionOlder version "7.3") "--with-pcre-regex=${pcre.dev} PCRE_LIBDIR=${pcre}"
|
||||
++ optional (versions.majorMinor version == "7.3") "--with-pcre-regex=${pcre2.dev} PCRE_LIBDIR=${pcre2}"
|
||||
++ optional (versionAtLeast version "7.4") "--with-external-pcre=${pcre2.dev} PCRE_LIBDIR=${pcre2}"
|
||||
++ optionals (versionOlder version "7.3") [ "--with-pcre-regex=${pcre.dev}" "PCRE_LIBDIR=${pcre}" ]
|
||||
++ optionals (versions.majorMinor version == "7.3") [ "--with-pcre-regex=${pcre2.dev}" "PCRE_LIBDIR=${pcre2}" ]
|
||||
++ optionals (versionAtLeast version "7.4") [ "--with-external-pcre=${pcre2.dev}" "PCRE_LIBDIR=${pcre2}" ]
|
||||
++ optional stdenv.isDarwin "--with-iconv=${libiconv}"
|
||||
++ optional withSystemd "--with-fpm-systemd"
|
||||
++ optionals imapSupport [
|
||||
@@ -129,7 +129,7 @@ let
|
||||
"LDAP_INCDIR=${openldap.dev}/include"
|
||||
"LDAP_LIBDIR=${openldap.out}/lib"
|
||||
]
|
||||
++ optional (ldapSupport && stdenv.isLinux) "--with-ldap-sasl=${cyrus_sasl.dev}"
|
||||
++ optional (ldapSupport && stdenv.isLinux) "--with-ldap-sasl=${cyrus_sasl.dev}"
|
||||
++ optional apxs2Support "--with-apxs2=${apacheHttpd.dev}/bin/apxs"
|
||||
++ optional embedSupport "--enable-embed"
|
||||
++ optional mhashSupport "--with-mhash"
|
||||
|
||||
Reference in New Issue
Block a user