php: Make all arguments to a PHP build overridable
Make all arguments to a PHP build overridable; i.e, both configuration flags, such as valgrindSupport, and packages, such as valgrind: php.override { valgrindSupport = false; valgrind = valgrind-light; } This applies to packages built by generic and buildEnv/withExtensions; i.e, it works with both phpXX and phpXXBase packages. The following changes were also made to facilitate this: - generic and generic' are merged into one function - generic now takes all required arguments for a complete build and is meant to be called by callPackage - The main function called from all-packages.nix no longer takes all required arguments for a complete build - all arguments passed to it are however forwarded to the individual builds, thus default arguments can still be overridden from all-packages.nix
This commit is contained in:
parent
a463261415
commit
dde5f5f899
1 changed files with 217 additions and 213 deletions
|
@ -1,254 +1,258 @@
|
||||||
# We have tests for PCRE and PHP-FPM in nixos/tests/php/ or
|
# We have tests for PCRE and PHP-FPM in nixos/tests/php/ or
|
||||||
# both in the same attribute named nixosTests.php
|
# both in the same attribute named nixosTests.php
|
||||||
|
|
||||||
{ callPackage, config, fetchurl, lib, makeWrapper, stdenv, symlinkJoin
|
{ callPackage, lib, stdenv }@_args:
|
||||||
, writeText , autoconf, automake, bison, flex, libtool, pkgconfig, re2c
|
|
||||||
, apacheHttpd, libargon2, libxml2, pcre, pcre2 , systemd, valgrind
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
generic =
|
generic =
|
||||||
{ version
|
{ callPackage, lib, stdenv, config, fetchurl, makeWrapper
|
||||||
, sha256
|
, symlinkJoin, writeText, autoconf, automake, bison, flex, libtool
|
||||||
, extraPatches ? []
|
, pkgconfig, re2c, apacheHttpd, libargon2, libxml2, pcre, pcre2
|
||||||
|
, systemd, valgrind
|
||||||
|
|
||||||
# Sapi flags
|
, version
|
||||||
, cgiSupport ? config.php.cgi or true
|
, sha256
|
||||||
, cliSupport ? config.php.cli or true
|
, extraPatches ? []
|
||||||
, fpmSupport ? config.php.fpm or true
|
|
||||||
, pearSupport ? config.php.pear or true
|
, defaultPhpExtensions
|
||||||
, pharSupport ? config.php.phar or true
|
|
||||||
, phpdbgSupport ? config.php.phpdbg or true
|
# Sapi flags
|
||||||
|
, cgiSupport ? config.php.cgi or true
|
||||||
|
, cliSupport ? config.php.cli or true
|
||||||
|
, fpmSupport ? config.php.fpm or true
|
||||||
|
, pearSupport ? config.php.pear or true
|
||||||
|
, pharSupport ? config.php.phar or true
|
||||||
|
, phpdbgSupport ? config.php.phpdbg or true
|
||||||
|
|
||||||
|
|
||||||
# Misc flags
|
# Misc flags
|
||||||
, apxs2Support ? config.php.apxs2 or (!stdenv.isDarwin)
|
, apxs2Support ? config.php.apxs2 or (!stdenv.isDarwin)
|
||||||
, argon2Support ? config.php.argon2 or true
|
, argon2Support ? config.php.argon2 or true
|
||||||
, cgotoSupport ? config.php.cgoto or false
|
, cgotoSupport ? config.php.cgoto or false
|
||||||
, embedSupport ? config.php.embed or false
|
, embedSupport ? config.php.embed or false
|
||||||
, ipv6Support ? config.php.ipv6 or true
|
, ipv6Support ? config.php.ipv6 or true
|
||||||
, systemdSupport ? config.php.systemd or stdenv.isLinux
|
, systemdSupport ? config.php.systemd or stdenv.isLinux
|
||||||
, valgrindSupport ? config.php.valgrind or true
|
, valgrindSupport ? config.php.valgrind or true
|
||||||
, ztsSupport ? (config.php.zts or false) || (apxs2Support)
|
, ztsSupport ? (config.php.zts or false) || (apxs2Support)
|
||||||
}: let
|
}@args:
|
||||||
pcre' = if (lib.versionAtLeast version "7.3") then pcre2 else pcre;
|
let
|
||||||
in stdenv.mkDerivation {
|
self = generic args;
|
||||||
pname = "php";
|
|
||||||
|
|
||||||
inherit version;
|
php-packages = (callPackage ../../../top-level/php-packages.nix {
|
||||||
|
php = self;
|
||||||
|
phpWithExtensions = self.withExtensions defaultPhpExtensions;
|
||||||
|
});
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
buildEnv = lib.makeOverridable (
|
||||||
|
{ extensions ? (_: []), extraConfig ? "", ... }@innerArgs:
|
||||||
|
let
|
||||||
|
filteredInnerArgs = builtins.removeAttrs innerArgs [ "extensions" "extraConfig" ];
|
||||||
|
allArgs = args // filteredInnerArgs;
|
||||||
|
php = generic allArgs;
|
||||||
|
|
||||||
nativeBuildInputs = [ autoconf automake bison flex libtool pkgconfig re2c ];
|
php-packages = (callPackage ../../../top-level/php-packages.nix {
|
||||||
|
inherit php phpWithExtensions;
|
||||||
|
});
|
||||||
|
|
||||||
buildInputs =
|
getExtName = ext: lib.removePrefix "php-" (builtins.parseDrvName ext.name).name;
|
||||||
# PCRE extension
|
enabledExtensions = extensions php-packages.extensions;
|
||||||
[ pcre' ]
|
|
||||||
|
|
||||||
# Enable sapis
|
# Generate extension load configuration snippets from the
|
||||||
++ lib.optional pearSupport [ libxml2.dev ]
|
# extension parameter. This is an attrset suitable for use
|
||||||
|
# with textClosureList, which is used to put the strings in
|
||||||
|
# the right order - if a plugin which is dependent on
|
||||||
|
# another plugin is placed before its dependency, it will
|
||||||
|
# fail to load.
|
||||||
|
extensionTexts =
|
||||||
|
lib.listToAttrs
|
||||||
|
(map (ext:
|
||||||
|
let
|
||||||
|
extName = getExtName ext;
|
||||||
|
type = "${lib.optionalString (ext.zendExtension or false) "zend_"}extension";
|
||||||
|
in
|
||||||
|
lib.nameValuePair extName {
|
||||||
|
text = "${type}=${ext}/lib/php/extensions/${extName}.so";
|
||||||
|
deps = lib.optionals (ext ? internalDeps)
|
||||||
|
(map getExtName ext.internalDeps);
|
||||||
|
})
|
||||||
|
enabledExtensions);
|
||||||
|
|
||||||
# Misc deps
|
extNames = map getExtName enabledExtensions;
|
||||||
++ lib.optional apxs2Support apacheHttpd
|
extraInit = writeText "custom-php.ini" ''
|
||||||
++ lib.optional argon2Support libargon2
|
${lib.concatStringsSep "\n"
|
||||||
++ lib.optional systemdSupport systemd
|
(lib.textClosureList extensionTexts extNames)}
|
||||||
++ lib.optional valgrindSupport valgrind
|
${extraConfig}
|
||||||
;
|
'';
|
||||||
|
|
||||||
CXXFLAGS = lib.optionalString stdenv.cc.isClang "-std=c++11";
|
phpWithExtensions = symlinkJoin rec {
|
||||||
|
name = "php-with-extensions-${version}";
|
||||||
|
inherit (php) version;
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
passthru = {
|
||||||
|
inherit buildEnv withExtensions enabledExtensions;
|
||||||
|
inherit (php-packages) packages extensions;
|
||||||
|
};
|
||||||
|
paths = [ php ];
|
||||||
|
postBuild = ''
|
||||||
|
cp ${extraInit} $out/lib/custom-php.ini
|
||||||
|
|
||||||
configureFlags =
|
wrapProgram $out/bin/php --set PHP_INI_SCAN_DIR $out/lib
|
||||||
# Disable all extensions
|
|
||||||
[ "--disable-all" ]
|
|
||||||
|
|
||||||
# PCRE
|
if test -e $out/bin/php-fpm; then
|
||||||
++ lib.optionals (lib.versionAtLeast version "7.4") [ "--with-external-pcre=${pcre'.dev}" ]
|
wrapProgram $out/bin/php-fpm --set PHP_INI_SCAN_DIR $out/lib
|
||||||
++ lib.optionals (lib.versions.majorMinor version == "7.3") [ "--with-pcre-regex=${pcre'.dev}" ]
|
fi
|
||||||
++ lib.optionals (lib.versionOlder version "7.3") [ "--with-pcre-regex=${pcre'.dev}" ]
|
'';
|
||||||
++ [ "PCRE_LIBDIR=${pcre'}" ]
|
|
||||||
|
|
||||||
|
|
||||||
# Enable sapis
|
|
||||||
++ lib.optional (!cgiSupport) "--disable-cgi"
|
|
||||||
++ lib.optional (!cliSupport) "--disable-cli"
|
|
||||||
++ lib.optional fpmSupport "--enable-fpm"
|
|
||||||
++ lib.optional pearSupport [ "--with-pear=$(out)/lib/php/pear" "--enable-xml" "--with-libxml" ]
|
|
||||||
++ lib.optional (pearSupport && (lib.versionOlder version "7.4")) "--enable-libxml"
|
|
||||||
++ lib.optional pharSupport "--enable-phar"
|
|
||||||
++ lib.optional phpdbgSupport "--enable-phpdbg"
|
|
||||||
|
|
||||||
|
|
||||||
# Misc flags
|
|
||||||
++ lib.optional apxs2Support "--with-apxs2=${apacheHttpd.dev}/bin/apxs"
|
|
||||||
++ lib.optional argon2Support "--with-password-argon2=${libargon2}"
|
|
||||||
++ lib.optional cgotoSupport "--enable-re2c-cgoto"
|
|
||||||
++ lib.optional embedSupport "--enable-embed"
|
|
||||||
++ lib.optional (!ipv6Support) "--disable-ipv6"
|
|
||||||
++ lib.optional systemdSupport "--with-fpm-systemd"
|
|
||||||
++ lib.optional valgrindSupport "--with-valgrind=${valgrind.dev}"
|
|
||||||
++ lib.optional ztsSupport "--enable-maintainer-zts"
|
|
||||||
;
|
|
||||||
|
|
||||||
hardeningDisable = [ "bindnow" ];
|
|
||||||
|
|
||||||
preConfigure = ''
|
|
||||||
# Don't record the configure flags since this causes unnecessary
|
|
||||||
# runtime dependencies
|
|
||||||
for i in main/build-defs.h.in scripts/php-config.in; do
|
|
||||||
substituteInPlace $i \
|
|
||||||
--replace '@CONFIGURE_COMMAND@' '(omitted)' \
|
|
||||||
--replace '@CONFIGURE_OPTIONS@' "" \
|
|
||||||
--replace '@PHP_LDFLAGS@' ""
|
|
||||||
done
|
|
||||||
|
|
||||||
export EXTENSION_DIR=$out/lib/php/extensions
|
|
||||||
|
|
||||||
./buildconf --copy --force
|
|
||||||
|
|
||||||
if test -f $src/genfiles; then
|
|
||||||
./genfiles
|
|
||||||
fi
|
|
||||||
'' + lib.optionalString stdenv.isDarwin ''
|
|
||||||
substituteInPlace configure --replace "-lstdc++" "-lc++"
|
|
||||||
'';
|
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
test -d $out/etc || mkdir $out/etc
|
|
||||||
cp php.ini-production $out/etc/php.ini
|
|
||||||
'';
|
|
||||||
|
|
||||||
postFixup = ''
|
|
||||||
mkdir -p $dev/bin $dev/share/man/man1
|
|
||||||
mv $out/bin/phpize $out/bin/php-config $dev/bin/
|
|
||||||
mv $out/share/man/man1/phpize.1.gz \
|
|
||||||
$out/share/man/man1/php-config.1.gz \
|
|
||||||
$dev/share/man/man1/
|
|
||||||
'';
|
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://www.php.net/distributions/php-${version}.tar.bz2";
|
|
||||||
inherit sha256;
|
|
||||||
};
|
|
||||||
|
|
||||||
patches = [ ./fix-paths-php7.patch ] ++ extraPatches;
|
|
||||||
|
|
||||||
separateDebugInfo = true;
|
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
description = "An HTML-embedded scripting language";
|
|
||||||
homepage = "https://www.php.net/";
|
|
||||||
license = licenses.php301;
|
|
||||||
maintainers = with maintainers; [ globin etu ma27 ];
|
|
||||||
platforms = platforms.all;
|
|
||||||
outputsToInstall = [ "out" "dev" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
generic' = { version, sha256, self, selfWithExtensions, ... }@args:
|
|
||||||
let
|
|
||||||
filteredArgs = builtins.removeAttrs args [ "self" "selfWithExtensions" ];
|
|
||||||
php = generic filteredArgs;
|
|
||||||
|
|
||||||
php-packages = (callPackage ../../../top-level/php-packages.nix {
|
|
||||||
php = self;
|
|
||||||
phpWithExtensions = selfWithExtensions;
|
|
||||||
});
|
|
||||||
|
|
||||||
buildEnv = lib.makeOverridable (
|
|
||||||
{ extensions ? (_: []), extraConfig ? "", ... }@innerArgs:
|
|
||||||
let
|
|
||||||
filteredInnerArgs = builtins.removeAttrs innerArgs [ "extensions" "extraConfig" ];
|
|
||||||
allArgs = filteredArgs // filteredInnerArgs;
|
|
||||||
php = generic allArgs;
|
|
||||||
|
|
||||||
getExtName = ext: lib.removePrefix "php-" (builtins.parseDrvName ext.name).name;
|
|
||||||
enabledExtensions = extensions php-packages.extensions;
|
|
||||||
|
|
||||||
# Generate extension load configuration snippets from the
|
|
||||||
# extension parameter. This is an attrset suitable for use
|
|
||||||
# with textClosureList, which is used to put the strings in
|
|
||||||
# the right order - if a plugin which is dependent on
|
|
||||||
# another plugin is placed before its dependency, it will
|
|
||||||
# fail to load.
|
|
||||||
extensionTexts =
|
|
||||||
lib.listToAttrs
|
|
||||||
(map (ext:
|
|
||||||
let
|
|
||||||
extName = getExtName ext;
|
|
||||||
type = "${lib.optionalString (ext.zendExtension or false) "zend_"}extension";
|
|
||||||
in
|
|
||||||
lib.nameValuePair extName {
|
|
||||||
text = "${type}=${ext}/lib/php/extensions/${extName}.so";
|
|
||||||
deps = lib.optionals (ext ? internalDeps)
|
|
||||||
(map getExtName ext.internalDeps);
|
|
||||||
})
|
|
||||||
enabledExtensions);
|
|
||||||
|
|
||||||
extNames = map getExtName enabledExtensions;
|
|
||||||
extraInit = writeText "custom-php.ini" ''
|
|
||||||
${lib.concatStringsSep "\n"
|
|
||||||
(lib.textClosureList extensionTexts extNames)}
|
|
||||||
${extraConfig}
|
|
||||||
'';
|
|
||||||
in
|
|
||||||
symlinkJoin {
|
|
||||||
name = "php-with-extensions-${version}";
|
|
||||||
inherit (php) version;
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
|
||||||
passthru = {
|
|
||||||
inherit buildEnv withExtensions enabledExtensions;
|
|
||||||
inherit (php-packages) packages extensions;
|
|
||||||
};
|
};
|
||||||
paths = [ php ];
|
in
|
||||||
postBuild = ''
|
phpWithExtensions);
|
||||||
cp ${extraInit} $out/lib/custom-php.ini
|
|
||||||
|
|
||||||
wrapProgram $out/bin/php --set PHP_INI_SCAN_DIR $out/lib
|
withExtensions = extensions: buildEnv { inherit extensions; };
|
||||||
|
|
||||||
if test -e $out/bin/php-fpm; then
|
pcre' = if (lib.versionAtLeast version "7.3") then pcre2 else pcre;
|
||||||
wrapProgram $out/bin/php-fpm --set PHP_INI_SCAN_DIR $out/lib
|
in
|
||||||
fi
|
stdenv.mkDerivation {
|
||||||
'';
|
pname = "php";
|
||||||
});
|
|
||||||
|
|
||||||
withExtensions = extensions: buildEnv { inherit extensions; };
|
inherit version;
|
||||||
in
|
|
||||||
php.overrideAttrs (_: {
|
enableParallelBuilding = true;
|
||||||
passthru = {
|
|
||||||
enabledExtensions = [];
|
nativeBuildInputs = [ autoconf automake bison flex libtool pkgconfig re2c ];
|
||||||
inherit buildEnv withExtensions;
|
|
||||||
inherit (php-packages) packages extensions;
|
buildInputs =
|
||||||
|
# PCRE extension
|
||||||
|
[ pcre' ]
|
||||||
|
|
||||||
|
# Enable sapis
|
||||||
|
++ lib.optional pearSupport [ libxml2.dev ]
|
||||||
|
|
||||||
|
# Misc deps
|
||||||
|
++ lib.optional apxs2Support apacheHttpd
|
||||||
|
++ lib.optional argon2Support libargon2
|
||||||
|
++ lib.optional systemdSupport systemd
|
||||||
|
++ lib.optional valgrindSupport valgrind
|
||||||
|
;
|
||||||
|
|
||||||
|
CXXFLAGS = lib.optionalString stdenv.cc.isClang "-std=c++11";
|
||||||
|
|
||||||
|
configureFlags =
|
||||||
|
# Disable all extensions
|
||||||
|
[ "--disable-all" ]
|
||||||
|
|
||||||
|
# PCRE
|
||||||
|
++ lib.optionals (lib.versionAtLeast version "7.4") [ "--with-external-pcre=${pcre'.dev}" ]
|
||||||
|
++ lib.optionals (lib.versions.majorMinor version == "7.3") [ "--with-pcre-regex=${pcre'.dev}" ]
|
||||||
|
++ lib.optionals (lib.versionOlder version "7.3") [ "--with-pcre-regex=${pcre'.dev}" ]
|
||||||
|
++ [ "PCRE_LIBDIR=${pcre'}" ]
|
||||||
|
|
||||||
|
|
||||||
|
# Enable sapis
|
||||||
|
++ lib.optional (!cgiSupport) "--disable-cgi"
|
||||||
|
++ lib.optional (!cliSupport) "--disable-cli"
|
||||||
|
++ lib.optional fpmSupport "--enable-fpm"
|
||||||
|
++ lib.optional pearSupport [ "--with-pear=$(out)/lib/php/pear" "--enable-xml" "--with-libxml" ]
|
||||||
|
++ lib.optional (pearSupport && (lib.versionOlder version "7.4")) "--enable-libxml"
|
||||||
|
++ lib.optional pharSupport "--enable-phar"
|
||||||
|
++ lib.optional phpdbgSupport "--enable-phpdbg"
|
||||||
|
|
||||||
|
|
||||||
|
# Misc flags
|
||||||
|
++ lib.optional apxs2Support "--with-apxs2=${apacheHttpd.dev}/bin/apxs"
|
||||||
|
++ lib.optional argon2Support "--with-password-argon2=${libargon2}"
|
||||||
|
++ lib.optional cgotoSupport "--enable-re2c-cgoto"
|
||||||
|
++ lib.optional embedSupport "--enable-embed"
|
||||||
|
++ lib.optional (!ipv6Support) "--disable-ipv6"
|
||||||
|
++ lib.optional systemdSupport "--with-fpm-systemd"
|
||||||
|
++ lib.optional valgrindSupport "--with-valgrind=${valgrind.dev}"
|
||||||
|
++ lib.optional ztsSupport "--enable-maintainer-zts"
|
||||||
|
;
|
||||||
|
|
||||||
|
hardeningDisable = [ "bindnow" ];
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
# Don't record the configure flags since this causes unnecessary
|
||||||
|
# runtime dependencies
|
||||||
|
for i in main/build-defs.h.in scripts/php-config.in; do
|
||||||
|
substituteInPlace $i \
|
||||||
|
--replace '@CONFIGURE_COMMAND@' '(omitted)' \
|
||||||
|
--replace '@CONFIGURE_OPTIONS@' "" \
|
||||||
|
--replace '@PHP_LDFLAGS@' ""
|
||||||
|
done
|
||||||
|
|
||||||
|
export EXTENSION_DIR=$out/lib/php/extensions
|
||||||
|
|
||||||
|
./buildconf --copy --force
|
||||||
|
|
||||||
|
if test -f $src/genfiles; then
|
||||||
|
./genfiles
|
||||||
|
fi
|
||||||
|
'' + lib.optionalString stdenv.isDarwin ''
|
||||||
|
substituteInPlace configure --replace "-lstdc++" "-lc++"
|
||||||
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
test -d $out/etc || mkdir $out/etc
|
||||||
|
cp php.ini-production $out/etc/php.ini
|
||||||
|
'';
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
mkdir -p $dev/bin $dev/share/man/man1
|
||||||
|
mv $out/bin/phpize $out/bin/php-config $dev/bin/
|
||||||
|
mv $out/share/man/man1/phpize.1.gz \
|
||||||
|
$out/share/man/man1/php-config.1.gz \
|
||||||
|
$dev/share/man/man1/
|
||||||
|
'';
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://www.php.net/distributions/php-${version}.tar.bz2";
|
||||||
|
inherit sha256;
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [ ./fix-paths-php7.patch ] ++ extraPatches;
|
||||||
|
|
||||||
|
separateDebugInfo = true;
|
||||||
|
|
||||||
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
enabledExtensions = [];
|
||||||
|
inherit buildEnv withExtensions;
|
||||||
|
inherit (php-packages) packages extensions;
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "An HTML-embedded scripting language";
|
||||||
|
homepage = "https://www.php.net/";
|
||||||
|
license = licenses.php301;
|
||||||
|
maintainers = with maintainers; [ globin etu ma27 ];
|
||||||
|
platforms = platforms.all;
|
||||||
|
outputsToInstall = [ "out" "dev" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
});
|
|
||||||
|
|
||||||
php72base = generic' {
|
php72base = callPackage generic (_args // {
|
||||||
version = "7.2.29";
|
version = "7.2.29";
|
||||||
sha256 = "08xry2fgqgg8s0ym1hh11wkbr36av3zq1bn4krbciw1b7x8gb8ga";
|
sha256 = "08xry2fgqgg8s0ym1hh11wkbr36av3zq1bn4krbciw1b7x8gb8ga";
|
||||||
self = php72base;
|
defaultPhpExtensions = defaultPhpExtensionsWithHash;
|
||||||
selfWithExtensions = php72;
|
|
||||||
|
|
||||||
# https://bugs.php.net/bug.php?id=76826
|
# https://bugs.php.net/bug.php?id=76826
|
||||||
extraPatches = lib.optional stdenv.isDarwin ./php72-darwin-isfinite.patch;
|
extraPatches = lib.optional stdenv.isDarwin ./php72-darwin-isfinite.patch;
|
||||||
};
|
});
|
||||||
|
|
||||||
php73base = generic' {
|
php73base = callPackage generic (_args // {
|
||||||
version = "7.3.16";
|
version = "7.3.16";
|
||||||
sha256 = "0bh499v9dfgh9k51w4rird1slb9rh9whp5h37fb84c98d992s1xq";
|
sha256 = "0bh499v9dfgh9k51w4rird1slb9rh9whp5h37fb84c98d992s1xq";
|
||||||
self = php73base;
|
defaultPhpExtensions = defaultPhpExtensionsWithHash;
|
||||||
selfWithExtensions = php73;
|
|
||||||
|
|
||||||
# https://bugs.php.net/bug.php?id=76826
|
# https://bugs.php.net/bug.php?id=76826
|
||||||
extraPatches = lib.optional stdenv.isDarwin ./php73-darwin-isfinite.patch;
|
extraPatches = lib.optional stdenv.isDarwin ./php73-darwin-isfinite.patch;
|
||||||
};
|
});
|
||||||
|
|
||||||
php74base = generic' {
|
php74base = callPackage generic (_args // {
|
||||||
version = "7.4.4";
|
version = "7.4.4";
|
||||||
sha256 = "17w2m4phhpj76x5fx67vgjrlkcczqvky3f5in1kjg2pch90qz3ih";
|
sha256 = "17w2m4phhpj76x5fx67vgjrlkcczqvky3f5in1kjg2pch90qz3ih";
|
||||||
self = php74base;
|
inherit defaultPhpExtensions;
|
||||||
selfWithExtensions = php74;
|
});
|
||||||
};
|
|
||||||
|
|
||||||
defaultPhpExtensions = extensions: with extensions; ([
|
defaultPhpExtensions = extensions: with extensions; ([
|
||||||
bcmath calendar curl ctype dom exif fileinfo filter ftp gd
|
bcmath calendar curl ctype dom exif fileinfo filter ftp gd
|
||||||
|
|
Loading…
Reference in a new issue