From c3ee85867eaf21528f6945d1a43b508ef096366f Mon Sep 17 00:00:00 2001 From: dramforever Date: Sat, 18 Oct 2025 22:49:30 +0800 Subject: [PATCH] mercurial: Use google-re2 instead Facebook's fb-re2 hasn't been maintained for 6 years. Move Mercurial to use google-re2, which is maintained, instead. Mercurial has internal checks that make it work with either fb-re2 or google-re2, so this should be fine. As a bonus this also unblocks full Musl build of Nix, which depends on Mercurial for tests. --- pkgs/by-name/me/mercurial/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/me/mercurial/package.nix b/pkgs/by-name/me/mercurial/package.nix index 7df8e2b3955e..c6137a31a783 100644 --- a/pkgs/by-name/me/mercurial/package.nix +++ b/pkgs/by-name/me/mercurial/package.nix @@ -30,7 +30,7 @@ let inherit (python3Packages) docutils python - fb-re2 + google-re2 pygit2 pygments setuptools @@ -64,7 +64,7 @@ let cargoRoot = if rustSupport then "rust" else null; propagatedBuildInputs = - lib.optional re2Support fb-re2 + lib.optional re2Support google-re2 ++ lib.optional gitSupport pygit2 ++ lib.optional highlightSupport pygments; nativeBuildInputs = [