Merge pull request #86848 from primeos/git-add-doc-output

git: Add a doc output for the HTML and text files
This commit is contained in:
Wout Mertens
2020-05-18 21:28:58 +02:00
committed by GitHub
4 changed files with 16 additions and 3 deletions
@@ -424,6 +424,11 @@ systemd.services.nginx.serviceConfig.ReadWritePaths = [ "/var/www" ];
This matches the autotools convention for env vars which standard for these things, making interfacing with other tools easier. This matches the autotools convention for env vars which standard for these things, making interfacing with other tools easier.
</para> </para>
</listitem> </listitem>
<listitem>
<para>
Additional Git documentation (HTML and text files) is now available via the <literal>git-doc</literal> package.
</para>
</listitem>
</itemizedlist> </itemizedlist>
</section> </section>
</section> </section>
@@ -82,6 +82,14 @@ let
inherit (darwin.apple_sdk.frameworks) CoreFoundation Security; inherit (darwin.apple_sdk.frameworks) CoreFoundation Security;
}; };
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-extras = callPackage ./git-extras { }; git-extras = callPackage ./git-extras { };
git-fame = callPackage ./git-fame {}; git-fame = callPackage ./git-fame {};
@@ -36,7 +36,7 @@ stdenv.mkDerivation {
sha256 = "0j685w6pzkn926z5nf5r8fij4ziipvw4c9yb0wc577nzf4j16rbd"; sha256 = "0j685w6pzkn926z5nf5r8fij4ziipvw4c9yb0wc577nzf4j16rbd";
}; };
outputs = [ "out" ]; outputs = [ "out" "doc" ];
hardeningDisable = [ "format" ]; hardeningDisable = [ "format" ];
@@ -234,7 +234,7 @@ stdenv.mkDerivation {
'') '')
+ stdenv.lib.optionalString withManual ''# Install man pages and Info manual + stdenv.lib.optionalString withManual ''# Install man pages and Info manual
make -j $NIX_BUILD_CORES -l $NIX_BUILD_CORES PERL_PATH="${buildPackages.perl}/bin/perl" cmd-list.made install install-info \ make -j $NIX_BUILD_CORES -l $NIX_BUILD_CORES PERL_PATH="${buildPackages.perl}/bin/perl" cmd-list.made install install-html install-info \
-C Documentation '' -C Documentation ''
+ (if guiSupport then '' + (if guiSupport then ''
+1 -1
View File
@@ -19733,7 +19733,7 @@ in
gitAndTools = recurseIntoAttrs (callPackage ../applications/version-management/git-and-tools {}); gitAndTools = recurseIntoAttrs (callPackage ../applications/version-management/git-and-tools {});
inherit (gitAndTools) git gitFull gitSVN git-cola svn2git git-radar git-secret git-secrets transcrypt git-crypt ghq; inherit (gitAndTools) git gitFull gitSVN git-cola git-doc svn2git git-radar git-secret git-secrets transcrypt git-crypt ghq;
gitMinimal = git.override { gitMinimal = git.override {
withManual = false; withManual = false;