inetutils: Update to 1.9.1 and fix compilation

http://hydra.nixos.org/build/3052788
This commit is contained in:
Eelco Dolstra 2012-09-21 13:39:20 -04:00
parent 6d27c9d5c3
commit 4952fa98ee

View file

@ -1,18 +1,26 @@
{ stdenv, fetchurl, ncurses }:
stdenv.mkDerivation rec {
name = "inetutils-1.8";
name = "inetutils-1.9.1";
src = fetchurl {
url = "mirror://gnu/inetutils/${name}.tar.gz";
sha256 = "1iqihfv54nzjmclivys2dpcyfhavgynj8pp6r44a97jbw2p0nl68";
sha256 = "0azzg6njgq79byl6960kb0wihfhhzf49snslhxgvi30ribgfpa82";
};
buildInputs = [ ncurses /* for `talk' */ ];
configureFlags = "--with-ncurses-include-dir=${ncurses}/include";
doCheck = true;
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