From f29762d5d6feb3b287c39e81948a9a4c135913b0 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 24 Sep 2012 17:37:48 -0400 Subject: [PATCH] idutils: Fix gets() problem http://hydra.nixos.org/build/3060033 --- pkgs/tools/misc/idutils/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/tools/misc/idutils/default.nix b/pkgs/tools/misc/idutils/default.nix index 4b81d48b0278..b76b9a187151 100644 --- a/pkgs/tools/misc/idutils/default.nix +++ b/pkgs/tools/misc/idutils/default.nix @@ -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;