File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 247247 ourPatches ++ upstreamPatches ;
248248
249249 nativeBuildInputs = attrs . nativeBuildInputs ++ [
250+ # Tarballs ship pre-generated parser files.
250251 pkgs . bison
252+ pkgs . flex
251253 ] ;
252254
253255 postPatch = ''
335337
336338 tokenizer =
337339 prev . extensions . tokenizer . overrideAttrs ( attrs : {
338- nativeBuildInputs = attrs . nativeBuildInputs or [ ] ++ lib . optionals isBuiltFromGit [
340+ nativeBuildInputs = attrs . nativeBuildInputs ++ [
339341 # Tarballs ship pre-generated parser files.
340342 pkgs . bison
341343 pkgs . flex
342344 ] ;
345+ postPatch = ''
346+ echo '
347+ # TODO: Add explanation here.
348+ # See https://github.com/fossar/nix-phps/pull/104#issuecomment-1113964195
349+ PHP_PROG_BISON([3.0.0])
350+ PHP_PROG_RE2C([0.13.4])
351+ ' | cat - ext/tokenizer/config.m4 > ext/tokenizer/config.m4.tmp
352+ mv ext/tokenizer/config.m4{.tmp,}
353+ '' ;
343354 } ) ;
344355
345356 xdebug =
You can’t perform that action at this time.
0 commit comments