diff options
author | Dan Peebles <pumpkin@me.com> | 2017-07-11 21:54:13 -0400 |
---|---|---|
committer | Dan Peebles <pumpkin@me.com> | 2017-07-11 21:56:38 -0400 |
commit | 0419452113ebb135907257bb063cb690a4de0b52 (patch) | |
tree | ece5dea38ce8b607aa3bf7f3dc48e002296c0333 /pkgs/tools/misc/coreutils/default.nix | |
parent | a889454869e4f7d5ba6067ebcc0ba7fcd26e4417 (diff) | |
download | nixlib-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/tools/misc/coreutils/default.nix')
-rw-r--r-- | pkgs/tools/misc/coreutils/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/tools/misc/coreutils/default.nix b/pkgs/tools/misc/coreutils/default.nix index 9a988a2b4311..099e9ee0849d 100644 --- a/pkgs/tools/misc/coreutils/default.nix +++ b/pkgs/tools/misc/coreutils/default.nix @@ -24,7 +24,8 @@ stdenv.mkDerivation rec { # FIXME needs gcc 4.9 in bootstrap tools hardeningDisable = [ "stackprotector" ]; - patches = optional hostPlatform.isCygwin ./coreutils-8.23-4.cygwin.patch; + patches = optional hostPlatform.isCygwin ./coreutils-8.23-4.cygwin.patch + ++ optional hostPlatform.isDarwin stdenv.secure-format-patch; # The test tends to fail on btrfs and maybe other unusual filesystems. postPatch = optionalString (!hostPlatform.isDarwin) '' |