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 322
322
ourPatches ++ upstreamPatches ;
323
323
324
324
nativeBuildInputs = attrs . nativeBuildInputs ++ [
325
+ # Tarballs ship pre-generated parser files.
325
326
pkgs . bison
327
+ pkgs . flex
326
328
] ;
327
329
328
330
postPatch = ''
428
430
429
431
tokenizer =
430
432
prev . extensions . tokenizer . overrideAttrs ( attrs : {
431
- nativeBuildInputs = attrs . nativeBuildInputs or [ ] ++ lib . optionals isBuiltFromGit [
433
+ nativeBuildInputs = attrs . nativeBuildInputs ++ [
432
434
# Tarballs ship pre-generated parser files.
433
435
pkgs . bison
434
436
pkgs . flex
435
437
] ;
438
+ postPatch = ''
439
+ echo '
440
+ # TODO: Add explanation here.
441
+ # See https://github.com/fossar/nix-phps/pull/104#issuecomment-1113964195
442
+ PHP_PROG_BISON([3.0.0])
443
+ PHP_PROG_RE2C([0.13.4])
444
+ ' | cat - ext/tokenizer/config.m4 > ext/tokenizer/config.m4.tmp
445
+ mv ext/tokenizer/config.m4{.tmp,}
446
+ '' ;
436
447
} ) ;
437
448
438
449
wddx =
You can’t perform that action at this time.
0 commit comments