summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/archivers/sharutils
diff options
context:
space:
mode:
authorJoel Taylor <me@joelt.io>2014-08-17 13:17:13 -0700
committerJoel Taylor <me@joelt.io>2014-09-09 13:54:24 -0700
commit3e8344d334d42824ac3061a919ac15b19a1bf21d (patch)
tree5ecad4218357caec8ddc27d5df150a5734db0281 /pkgs/tools/archivers/sharutils
parente3fd4499ef296f4769cf4e9e91f1ccfd16325b0f (diff)
suitable clang stdenv
Diffstat (limited to 'pkgs/tools/archivers/sharutils')
-rw-r--r--pkgs/tools/archivers/sharutils/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/tools/archivers/sharutils/default.nix b/pkgs/tools/archivers/sharutils/default.nix
index f19564e4ad91..281a148a5ca4 100644
--- a/pkgs/tools/archivers/sharutils/default.nix
+++ b/pkgs/tools/archivers/sharutils/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, gettext }:
+{ stdenv, fetchurl, gettext, coreutils }:
stdenv.mkDerivation rec {
name = "sharutils-4.11.1";
@@ -12,11 +12,11 @@ stdenv.mkDerivation rec {
''
# Fix for building on Glibc 2.16. Won't be needed once the
# gnulib in sharutils is updated.
- sed -i '/gets is a security hole/d' lib/stdio.in.h
+ sed -i ${stdenv.lib.optionalString (stdenv.isBSD && stdenv.gcc.nativeTools) "''"} '/gets is a security hole/d' lib/stdio.in.h
'';
# GNU Gettext is needed on non-GNU platforms.
- buildInputs = [ gettext ];
+ buildInputs = [ gettext coreutils ];
doCheck = true;