nixpkgs/pkgs/tools/networking/inetutils/default.nix
Bjørn Forsman c9baba9212 Fix many package descriptions
(My OCD kicked in today...)

Remove repeated package names, capitalize first word, remove trailing
periods and move overlong descriptions to longDescription.

I also simplified some descriptions as well, when they were particularly
long or technical, often based on Arch Linux' package descriptions.

I've tried to stay away from generated expressions (and I think I
succeeded).

Some specifics worth mentioning:
 * cron, has "Vixie Cron" in its description. The "Vixie" part is not
   mentioned anywhere else. I kept it in a parenthesis at the end of the
   description.

 * ctags description started with "Exuberant Ctags ...", and the
   "exuberant" part is not mentioned elsewhere. Kept it in a parenthesis
   at the end of description.

 * nix has the description "The Nix Deployment System". Since that
   doesn't really say much what it is/does (especially after removing
   the package name!), I changed that to "Powerful package manager that
   makes package management reliable and reproducible" (borrowed from
   nixos.org).

 * Tons of "GNU Foo, Foo is a [the important bits]" descriptions
   is changed to just [the important bits]. If the package name doesn't
   contain GNU I don't think it's needed to say it in the description
   either.
2014-08-24 22:31:37 +02:00

48 lines
1.4 KiB
Nix

{ stdenv, fetchurl, ncurses }:
stdenv.mkDerivation rec {
name = "inetutils-1.9.2";
src = fetchurl {
url = "mirror://gnu/inetutils/${name}.tar.gz";
sha256 = "04wrm0v7l4890mmbaawd6wjwdv08bkglgqhpz0q4dkb0l50fl8q4";
};
buildInputs = [ ncurses /* for `talk' */ ];
configureFlags = "--with-ncurses-include-dir=${ncurses}/include";
preConfigure = ''
# Fix for building on Glibc 2.16. Won't be needed once the
# gnulib in inetutils is updated.
sed -i '/gets is a security hole/d' lib/stdio.in.h
'';
# Test fails with "UNIX socket name too long", probably because our
# $TMPDIR is too long.
#doCheck = true;
postInstall = ''
# XXX: These programs are normally installed setuid but since it
# fails, they end up being non-executable, hence this hack.
chmod +x $out/bin/{ping,ping6,rcp,rlogin,rsh,traceroute}
'';
meta = {
description = "Collection of common network programs";
longDescription =
'' The GNU network utilities suite provides the
following tools: ftp(d), hostname, ifconfig, inetd, logger, ping, rcp,
rexec(d), rlogin(d), rsh(d), syslogd, talk(d), telnet(d), tftp(d),
traceroute, uucpd, and whois.
'';
homepage = http://www.gnu.org/software/inetutils/;
license = stdenv.lib.licenses.gpl3Plus;
maintainers = [ stdenv.lib.maintainers.ludo ];
platforms = stdenv.lib.platforms.gnu;
};
}