From 19ed2a43610ebe15e256863d4855bf93dbbe67b4 Mon Sep 17 00:00:00 2001 From: Alois Wohlschlager Date: Fri, 7 Feb 2025 19:49:14 +0100 Subject: [PATCH] mercurial: don't allowGitDependencies Without allowGitDependencies set to false, there is a dependency chain fetchCargoVendor -> nix-prefetch-git -> nix. Since Lix requires Mercurial for its tests, this would cause infinite recursion when the nix package was overlaid with Lix. Since Mercurial does not have Git dependencies, simply disallow them. --- pkgs/applications/version-management/mercurial/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/version-management/mercurial/default.nix b/pkgs/applications/version-management/mercurial/default.nix index 8806d8bec6d4..b01036d2292e 100644 --- a/pkgs/applications/version-management/mercurial/default.nix +++ b/pkgs/applications/version-management/mercurial/default.nix @@ -55,6 +55,7 @@ let rustPlatform.fetchCargoVendor { inherit src; name = "mercurial-${version}"; + allowGitDependencies = false; hash = "sha256-k/K1BupCqnlB++2T7hJxu82yID0jG8HwLNmb2eyx29o="; sourceRoot = "mercurial-${version}/rust"; }