Adding a manpage for tar, using help2man
svn path=/nixpkgs/trunk/; revision=32749
This commit is contained in:
parent
d8849a045e
commit
53e80e5316
@ -1,6 +1,8 @@
|
||||
{stdenv, fetchurl}:
|
||||
{stdenv, fetchurl, withMan ? false, help2man ? null}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
assert withMan -> help2man != null;
|
||||
|
||||
stdenv.mkDerivation (rec {
|
||||
name = "gnutar-1.25";
|
||||
|
||||
src = fetchurl {
|
||||
@ -32,4 +34,10 @@ stdenv.mkDerivation rec {
|
||||
maintainers = [ stdenv.lib.maintainers.ludo ];
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
};
|
||||
}
|
||||
} // (if withMan then {
|
||||
buildInputs = [ help2man ];
|
||||
postInstall = ''
|
||||
ensureDir $out/share/man/man1
|
||||
help2man $out/bin/tar > $out/share/man/man1/tar.1
|
||||
'';
|
||||
} else {}))
|
||||
|
@ -776,7 +776,11 @@ let
|
||||
|
||||
gnused_4_2 = callPackage ../tools/text/gnused/4.2.nix { };
|
||||
|
||||
gnutar = callPackage ../tools/archivers/gnutar { };
|
||||
gnutar = lowPrio (callPackage ../tools/archivers/gnutar { });
|
||||
|
||||
gnutarWithMan = callPackage ../tools/archivers/gnutar {
|
||||
withMan = true;
|
||||
};
|
||||
|
||||
gnuvd = callPackage ../tools/misc/gnuvd { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user