idutils: Fix gets() problem

http://hydra.nixos.org/build/3060033
This commit is contained in:
Eelco Dolstra 2012-09-24 17:37:48 -04:00
parent 9b8d21bd80
commit f29762d5d6

View file

@ -8,6 +8,13 @@ stdenv.mkDerivation rec {
sha256 = "1hmai3422iaqnp34kkzxdnywl7n7pvlxp11vrw66ybxn9wxg90c1";
};
preConfigure =
''
# Fix for building on Glibc 2.16. Won't be needed once the
# gnulib in idutils is updated.
sed -i '/gets is a security hole/d' lib/stdio.in.h
'';
buildInputs = stdenv.lib.optional stdenv.isLinux emacs;
doCheck = true;