File tree 1 file changed +12
-1
lines changed 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 359
359
ourPatches ++ upstreamPatches ;
360
360
361
361
nativeBuildInputs = attrs . nativeBuildInputs ++ [
362
+ # Tarballs ship pre-generated parser files.
362
363
pkgs . bison
364
+ pkgs . flex
363
365
] ;
364
366
365
367
postPatch = ''
470
472
471
473
tokenizer =
472
474
prev . extensions . tokenizer . overrideAttrs ( attrs : {
473
- nativeBuildInputs = attrs . nativeBuildInputs or [ ] ++ lib . optionals isBuiltFromGit [
475
+ nativeBuildInputs = attrs . nativeBuildInputs ++ [
474
476
# Tarballs ship pre-generated parser files.
475
477
pkgs . bison
476
478
pkgs . flex
477
479
] ;
480
+ postPatch = ''
481
+ echo '
482
+ # TODO: Add explanation here.
483
+ # See https://github.com/fossar/nix-phps/pull/104#issuecomment-1113964195
484
+ PHP_PROG_BISON([3.0.0])
485
+ PHP_PROG_RE2C([0.13.4])
486
+ ' | cat - ext/tokenizer/config.m4 > ext/tokenizer/config.m4.tmp
487
+ mv ext/tokenizer/config.m4{.tmp,}
488
+ '' ;
478
489
} ) ;
479
490
480
491
wddx =
You can’t perform that action at this time.
0 commit comments