nixpkgs-suyu/pkgs/tools/archivers/gnutar/default.nix
Lluís Batlle i Rossell 53e80e5316 Adding a manpage for tar, using help2man
svn path=/nixpkgs/trunk/; revision=32749
2012-03-03 09:52:55 +00:00

43 lines
1.4 KiB
Nix

{stdenv, fetchurl, withMan ? false, help2man ? null}:
assert withMan -> help2man != null;
stdenv.mkDerivation (rec {
name = "gnutar-1.25";
src = fetchurl {
url = "mirror://gnu/tar/tar-1.25.tar.bz2";
sha256 = "0js9b1jd93kjk6dgf40y2fpgpnix247rk5aws2mjgwz0p10wxxpk";
};
meta = {
homepage = http://www.gnu.org/software/tar/;
description = "GNU implementation of the `tar' archiver";
longDescription = ''
The Tar program provides the ability to create tar archives, as
well as various other kinds of manipulation. For example, you
can use Tar on previously created archives to extract files, to
store additional files, or to update or list files which were
already stored.
Initially, tar archives were used to store files conveniently on
magnetic tape. The name "Tar" comes from this use; it stands
for tape archiver. Despite the utility's name, Tar can direct
its output to available devices, files, or other programs (using
pipes), it can even access remote devices or files (as
archives).
'';
license = "GPLv3+";
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 {}))