summary refs log tree commit diff
path: root/pkgs/applications/editors/nano
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/applications/editors/nano
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/applications/editors/nano')
-rw-r--r--pkgs/applications/editors/nano/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/applications/editors/nano/default.nix b/pkgs/applications/editors/nano/default.nix
index f3527d85fd7f..6a740bbf6f1f 100644
--- a/pkgs/applications/editors/nano/default.nix
+++ b/pkgs/applications/editors/nano/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, fetchFromGitHub
+{ stdenv, hostPlatform, fetchurl, fetchFromGitHub
 , ncurses
 , texinfo
 , gettext ? null
@@ -27,6 +27,8 @@ in stdenv.mkDerivation rec {
     sha256 = "1hl9gni3qmblr062a7w6vz16gvxbswgc5c19c923ja0bk48vyhyb";
   };
 
+  patches = stdenv.lib.optional hostPlatform.isDarwin stdenv.secure-format-patch;
+
   nativeBuildInputs = [ texinfo ] ++ optional enableNls gettext;
   buildInputs = [ ncurses ];