pkgsLLVM.git-doc: improve eval error (#474199)

This commit is contained in:
Doron Behar
2025-12-27 16:01:35 +00:00
committed by GitHub
+12 -7
View File
@@ -1156,13 +1156,18 @@ with pkgs;
# Git with SVN support, but without GUI.
gitSVN = lowPrio (git.override { svnSupport = true; });
git-doc = lib.addMetaAttrs {
description = "Additional documentation for Git";
longDescription = ''
This package contains additional documentation (HTML and text files) that
is referenced in the man pages of Git.
'';
} gitFull.doc;
git-doc =
# doc attribute is not present at least for pkgsLLVM
if (gitFull ? doc) then
lib.addMetaAttrs {
description = "Additional documentation for Git";
longDescription = ''
This package contains additional documentation (HTML and text files) that
is referenced in the man pages of Git.
'';
} gitFull.doc
else
throw "'git-doc' can't be evaluated as 'gitFull' does not expose 'doc' attribute";
gitMinimal = git.override {
withManual = false;