We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
tokenizer
1 parent 7461915 commit d4ed6e8Copy full SHA for d4ed6e8
pkgs/package-overrides.nix
@@ -246,8 +246,10 @@ in
246
in
247
ourPatches ++ upstreamPatches;
248
249
- nativeBuildInputs = attrs.nativeBuildInputs ++ [
+ nativeBuildInputs = attrs.nativeBuildInputs or [ ] ++ lib.optionals isBuiltFromGit [
250
+ # Tarballs ship pre-generated parser files.
251
pkgs.bison
252
+ pkgs.flex
253
];
254
255
postPatch = ''
@@ -340,6 +342,15 @@ in
340
342
341
343
pkgs.flex
344
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
+ '';
354
});
355
356
xdebug =
0 commit comments