Unverified Commit cf17ead1 authored by Doron Behar's avatar Doron Behar Committed by GitHub
Browse files

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

parents f6a39994 0ce6504c
Loading
Loading
Loading
Loading
+12 −7
Original line number Diff line number Diff line
@@ -1156,13 +1156,18 @@ with pkgs;
  # Git with SVN support, but without GUI.
  gitSVN = lowPrio (git.override { svnSupport = true; });

  git-doc = lib.addMetaAttrs {
  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;
      } gitFull.doc
    else
      throw "'git-doc' can't be evaluated as 'gitFull' does not expose 'doc' attribute";

  gitMinimal = git.override {
    withManual = false;