Skip to content

Commit ff129ac

Browse files
committed
install pear phar
1 parent b412e7e commit ff129ac

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

pkgs/phps.nix

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,12 @@ let
138138
generic = "${nixpkgs}/pkgs/development/interpreters/php/generic.nix";
139139
mkPhp = args: prev.callPackage generic (_mkArgs args);
140140

141-
base-master = prev.callPackage generic (_mkArgs {
141+
base-master = let
142+
pear = prev.fetchurl {
143+
url = "https://pear.php.net/install-pear-nozlib.phar";
144+
hash = "sha256-UblKVcsm030tNSA6mdeab+h7ZhANNz7MkFf4Z1iigjs=";
145+
};
146+
in prev.callPackage generic (_mkArgs {
142147
version =
143148
let
144149
configureFile = "${php-src}/configure.ac";
@@ -181,14 +186,14 @@ let
181186

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

189190
preConfigure = attrs.preConfigure or "" + ''
190191
./scripts/dev/genfiles
191192
'';
193+
194+
postConfigure = ''
195+
cp -f ${pear} ./pear/install-pear-nozlib.phar
196+
'';
192197
};
193198
});
194199
in

0 commit comments

Comments
 (0)