summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/archivers/sharutils
diff options
context:
space:
mode:
authorJude Taylor <me@jude.bio>2015-06-19 22:08:01 -0700
committerJude Taylor <me@jude.bio>2015-06-19 22:08:01 -0700
commit14d83e9565ea6179c07999fde0be1f516889d005 (patch)
treef8f53b9a31620b086c8f286d3aadf42adc51b589 /pkgs/tools/archivers/sharutils
parent099f85465c344e49875385dd35bbba9fa72b5aa7 (diff)
add gnused to impure darwin stdenv
Diffstat (limited to 'pkgs/tools/archivers/sharutils')
-rw-r--r--pkgs/tools/archivers/sharutils/default.nix13
1 files changed, 5 insertions, 8 deletions
diff --git a/pkgs/tools/archivers/sharutils/default.nix b/pkgs/tools/archivers/sharutils/default.nix
index cc9618c4dcc4..a7135346d2fc 100644
--- a/pkgs/tools/archivers/sharutils/default.nix
+++ b/pkgs/tools/archivers/sharutils/default.nix
@@ -8,14 +8,11 @@ stdenv.mkDerivation rec {
sha256 = "1mallg1gprimlggdisfzdmh1xi676jsfdlfyvanlcw72ny8fsj3g";
};
- preConfigure =
- let needSedSpace = ((stdenv.isFreeBSD || stdenv.isOpenBSD) && stdenv.cc.nativeTools)
- || (stdenv.isDarwin && stdenv.cc.nativeLibc);
- in ''
- # Fix for building on Glibc 2.16. Won't be needed once the
- # gnulib in sharutils is updated.
- sed -i ${stdenv.lib.optionalString needSedSpace "''"} '/gets is a security hole/d' lib/stdio.in.h
- '';
+ preConfigure = ''
+ # Fix for building on Glibc 2.16. Won't be needed once the
+ # gnulib in sharutils is updated.
+ sed -i ${stdenv.lib.optionalString ((stdenv.isFreeBSD || stdenv.isOpenBSD) && stdenv.cc.nativeTools) "''"} '/gets is a security hole/d' lib/stdio.in.h
+ '';
# GNU Gettext is needed on non-GNU platforms.
buildInputs = [ gettext coreutils ];