about summary refs log tree commit diff
path: root/pkgs/development/tools
diff options
context:
space:
mode:
authorDan Peebles <pumpkin@me.com>2017-07-11 21:54:13 -0400
committerDan Peebles <pumpkin@me.com>2017-07-11 21:56:38 -0400
commit0419452113ebb135907257bb063cb690a4de0b52 (patch)
treeece5dea38ce8b607aa3bf7f3dc48e002296c0333 /pkgs/development/tools
parenta889454869e4f7d5ba6067ebcc0ba7fcd26e4417 (diff)
downloadnixlib-0419452113ebb135907257bb063cb690a4de0b52.tar
nixlib-0419452113ebb135907257bb063cb690a4de0b52.tar.gz
nixlib-0419452113ebb135907257bb063cb690a4de0b52.tar.bz2
nixlib-0419452113ebb135907257bb063cb690a4de0b52.tar.lz
nixlib-0419452113ebb135907257bb063cb690a4de0b52.tar.xz
nixlib-0419452113ebb135907257bb063cb690a4de0b52.tar.zst
nixlib-0419452113ebb135907257bb063cb690a4de0b52.zip
Fix Darwin stdenv to work on 10.13
The main changes are in libSystem, which lost the coretls component in 10.13
and some hardening changes that quietly crash any program that uses %n in
a non-constant format string, so we've needed to patch a lot of programs that
use gnulib.
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r--pkgs/development/tools/misc/gnum4/default.nix4
-rw-r--r--pkgs/development/tools/parsing/bison/3.x.nix4
2 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/development/tools/misc/gnum4/default.nix b/pkgs/development/tools/misc/gnum4/default.nix
index fbbd6cc4d6f8..33ea78907468 100644
--- a/pkgs/development/tools/misc/gnum4/default.nix
+++ b/pkgs/development/tools/misc/gnum4/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl }:
+{ stdenv, hostPlatform, fetchurl }:
 
 stdenv.mkDerivation rec {
   name = "gnum4-1.4.18";
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
   configureFlags = "--with-syscmd-shell=${stdenv.shell}";
 
   # Upstream is aware of it; it may be in the next release.
-  patches = [ ./s_isdir.patch ];
+  patches = [ ./s_isdir.patch ] ++ stdenv.lib.optional hostPlatform.isDarwin stdenv.secure-format-patch;
 
   # FIXME needs gcc 4.9 in bootstrap tools
   hardeningDisable = [ "stackprotector" ];
diff --git a/pkgs/development/tools/parsing/bison/3.x.nix b/pkgs/development/tools/parsing/bison/3.x.nix
index ebbee4e693dc..0369d7dabde5 100644
--- a/pkgs/development/tools/parsing/bison/3.x.nix
+++ b/pkgs/development/tools/parsing/bison/3.x.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, m4, perl, help2man }:
+{ stdenv, hostPlatform, fetchurl, m4, perl, help2man }:
 
 stdenv.mkDerivation rec {
   name = "bison-3.0.4";
@@ -8,6 +8,8 @@ stdenv.mkDerivation rec {
     sha256 = "b67fd2daae7a64b5ba862c66c07c1addb9e6b1b05c5f2049392cfd8a2172952e";
   };
 
+  patches = stdenv.lib.optional hostPlatform.isDarwin stdenv.secure-format-patch;
+
   nativeBuildInputs = [ m4 perl ] ++ stdenv.lib.optional stdenv.isSunOS help2man;
   propagatedBuildInputs = [ m4 ];