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 322322 ourPatches ++ upstreamPatches ;
323323
324324 nativeBuildInputs = attrs . nativeBuildInputs ++ [
325+ # Tarballs ship pre-generated parser files.
325326 pkgs . bison
327+ pkgs . flex
326328 ] ;
327329
328330 postPatch = ''
428430
429431 tokenizer =
430432 prev . extensions . tokenizer . overrideAttrs ( attrs : {
431- nativeBuildInputs = attrs . nativeBuildInputs or [ ] ++ lib . optionals isBuiltFromGit [
433+ nativeBuildInputs = attrs . nativeBuildInputs ++ [
432434 # Tarballs ship pre-generated parser files.
433435 pkgs . bison
434436 pkgs . flex
435437 ] ;
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+ '' ;
436447 } ) ;
437448
438449 wddx =
You can’t perform that action at this time.
0 commit comments