lixVersions: don't allowGitDependencies

Without allowGitDependencies set to false, there is a dependency chain
fetchCargoVendor -> nix-prefetch-git -> nix. This would cause infinite
recursion when the nix package was overlaid with Lix. Since lix-doc does not
have Git dependencies, simply disallow them.

Fixes: https://github.com/NixOS/nixpkgs/issues/378715
This commit is contained in:
Alois Wohlschlager 2025-02-02 10:53:31 +01:00
parent 3a228057f5
commit 8c90e7887c
No known key found for this signature in database
GPG Key ID: E0F59EA5E5216914

View File

@ -68,6 +68,7 @@ lib.makeExtensible (self: {
docCargoDeps = rustPlatform.fetchCargoVendor {
name = "lix-doc-${version}";
inherit src;
allowGitDependencies = false;
sourceRoot = "${src.name or src}/lix-doc";
hash = "sha256-VPcrf78gfLlkTRrcbLkPgLOk0o6lsOJBm6HYLvavpNU=";
};
@ -88,6 +89,7 @@ lib.makeExtensible (self: {
docCargoDeps = rustPlatform.fetchCargoVendor {
name = "lix-doc-${version}";
inherit src;
allowGitDependencies = false;
sourceRoot = "${src.name or src}/lix-doc";
hash = "sha256-U820gvcbQIBaFr2OWPidfFIDXycDFGgXX1NpWDDqENs=";
};