Skip to content

Commit

Permalink
install pear phar
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Sep 8, 2023
1 parent b412e7e commit ff129ac
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions pkgs/phps.nix
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,12 @@ let
generic = "${nixpkgs}/pkgs/development/interpreters/php/generic.nix";
mkPhp = args: prev.callPackage generic (_mkArgs args);

base-master = prev.callPackage generic (_mkArgs {
base-master = let
pear = prev.fetchurl {
url = "https://pear.php.net/install-pear-nozlib.phar";
hash = "sha256-UblKVcsm030tNSA6mdeab+h7ZhANNz7MkFf4Z1iigjs=";
};
in prev.callPackage generic (_mkArgs {
version =
let
configureFile = "${php-src}/configure.ac";
Expand Down Expand Up @@ -181,14 +186,14 @@ let

phpAttrsOverrides = attrs: {
src = php-src;
configureFlags = attrs.configureFlags ++ [
# install-pear-nozlib.phar (normally shipped in tarball) would need to be downloaded.
"--without-pear"
];

preConfigure = attrs.preConfigure or "" + ''
./scripts/dev/genfiles
'';

postConfigure = ''
cp -f ${pear} ./pear/install-pear-nozlib.phar
'';
};
});
in
Expand Down

0 comments on commit ff129ac

Please sign in to comment.