mercurial: add re2

Mercurial can make use of the RE2 regex engine where available to speed
up evaluation of regexes.
This commit is contained in:
Luke Granger-Brown 2021-05-03 18:59:14 +00:00
parent eb3d65bf19
commit 53ddf53f2c

View File

@ -5,7 +5,7 @@
}:
let
inherit (python3Packages) docutils python;
inherit (python3Packages) docutils python fb-re2;
in python3Packages.buildPythonApplication rec {
pname = "mercurial";
@ -28,6 +28,7 @@ in python3Packages.buildPythonApplication rec {
} else null;
cargoRoot = if rustSupport then "rust" else null;
propagatedBuildInputs = [ fb-re2 ];
nativeBuildInputs = [ makeWrapper gettext ]
++ lib.optionals rustSupport (with rustPlatform; [
cargoSetupHook