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 cd38824 commit 62010d7
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,10 +186,10 @@ let

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

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

0 comments on commit 62010d7

Please sign in to comment.