Loading pkgs/development/interpreters/php/generic.nix +18 −5 Original line number Diff line number Diff line Loading @@ -33,10 +33,12 @@ let , jq , version , hash , phpSrc ? null , hash ? null , extraPatches ? [ ] , packageOverrides ? (final: prev: { }) , phpAttrsOverrides ? (attrs: { }) , pearInstallPhar ? (callPackage ./install-pear-nozlib-phar.nix { }) # Sapi flags , cgiSupport ? true Loading Loading @@ -192,6 +194,11 @@ let mkWithExtensions = prevArgs: prevExtensionFunctions: extensions: mkBuildEnv prevArgs prevExtensionFunctions { inherit extensions; }; defaultPhpSrc = fetchurl { url = "https://www.php.net/distributions/php-${version}.tar.bz2"; inherit hash; }; in stdenv.mkDerivation ( let Loading Loading @@ -278,6 +285,15 @@ let substituteInPlace configure --replace "-lstdc++" "-lc++" ''; # When compiling PHP sources from Github, this file is missing and we # need to install it ourselves. # On the other hand, a distribution includes this file by default. preInstall = '' if [[ ! -f ./pear/install-pear-nozlib.phar ]]; then cp ${pearInstallPhar} ./pear/install-pear-nozlib.phar fi ''; postInstall = '' test -d $out/etc || mkdir $out/etc cp php.ini-production $out/etc/php.ini Loading @@ -291,10 +307,7 @@ let $dev/share/man/man1/ ''; src = fetchurl { url = "https://www.php.net/distributions/php-${version}.tar.bz2"; inherit hash; }; src = if phpSrc == null then defaultPhpSrc else phpSrc; patches = [ ./fix-paths-php7.patch ] ++ extraPatches; Loading pkgs/development/interpreters/php/install-pear-nozlib-phar.nix 0 → 100644 +8 −0 Original line number Diff line number Diff line { fetchurl }: fetchurl { url = "https://pear.php.net/install-pear-nozlib.phar"; hash = "sha256-UblKVcsm030tNSA6mdeab+h7ZhANNz7MkFf4Z1iigjs="; } Loading
pkgs/development/interpreters/php/generic.nix +18 −5 Original line number Diff line number Diff line Loading @@ -33,10 +33,12 @@ let , jq , version , hash , phpSrc ? null , hash ? null , extraPatches ? [ ] , packageOverrides ? (final: prev: { }) , phpAttrsOverrides ? (attrs: { }) , pearInstallPhar ? (callPackage ./install-pear-nozlib-phar.nix { }) # Sapi flags , cgiSupport ? true Loading Loading @@ -192,6 +194,11 @@ let mkWithExtensions = prevArgs: prevExtensionFunctions: extensions: mkBuildEnv prevArgs prevExtensionFunctions { inherit extensions; }; defaultPhpSrc = fetchurl { url = "https://www.php.net/distributions/php-${version}.tar.bz2"; inherit hash; }; in stdenv.mkDerivation ( let Loading Loading @@ -278,6 +285,15 @@ let substituteInPlace configure --replace "-lstdc++" "-lc++" ''; # When compiling PHP sources from Github, this file is missing and we # need to install it ourselves. # On the other hand, a distribution includes this file by default. preInstall = '' if [[ ! -f ./pear/install-pear-nozlib.phar ]]; then cp ${pearInstallPhar} ./pear/install-pear-nozlib.phar fi ''; postInstall = '' test -d $out/etc || mkdir $out/etc cp php.ini-production $out/etc/php.ini Loading @@ -291,10 +307,7 @@ let $dev/share/man/man1/ ''; src = fetchurl { url = "https://www.php.net/distributions/php-${version}.tar.bz2"; inherit hash; }; src = if phpSrc == null then defaultPhpSrc else phpSrc; patches = [ ./fix-paths-php7.patch ] ++ extraPatches; Loading
pkgs/development/interpreters/php/install-pear-nozlib-phar.nix 0 → 100644 +8 −0 Original line number Diff line number Diff line { fetchurl }: fetchurl { url = "https://pear.php.net/install-pear-nozlib.phar"; hash = "sha256-UblKVcsm030tNSA6mdeab+h7ZhANNz7MkFf4Z1iigjs="; }