about summary refs log tree commit diff
path: root/pkgs/applications/editors/nano
diff options
context:
space:
mode:
authorOrivej Desh <orivej@gmx.fr>2017-11-29 01:22:42 +0000
committerOrivej Desh <orivej@gmx.fr>2017-11-29 01:24:20 +0000
commit14ec308514ac1a7498687349134e7c0ef0fbfd53 (patch)
tree7de85670cec2f320037b62e75ffe2a436ac842ea /pkgs/applications/editors/nano
parentdb0c2be11220c5e602b7eabb2177e8cb5035edf3 (diff)
nano: fix darwin build
Broken by 366f1525ff47bfbee398eeac0cec0edd85e999ac in #32140.
Diffstat (limited to 'pkgs/applications/editors/nano')
-rw-r--r--pkgs/applications/editors/nano/default.nix4
-rw-r--r--pkgs/applications/editors/nano/nano-2.9.1-darwin.patch9
2 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/applications/editors/nano/default.nix b/pkgs/applications/editors/nano/default.nix
index 35396b96ea751..dcb124bcb1255 100644
--- a/pkgs/applications/editors/nano/default.nix
+++ b/pkgs/applications/editors/nano/default.nix
@@ -27,6 +27,8 @@ in stdenv.mkDerivation rec {
     sha256 = "0z5sxji8jh8sh0g3inbzndhsrbm4qyqlvjrxl5wkxbr61lnxa5k3";
   };
 
+  patches = [ ./nano-2.9.1-darwin.patch ];
+
   nativeBuildInputs = [ texinfo ] ++ optional enableNls gettext;
   buildInputs = [ ncurses ];
 
@@ -42,6 +44,8 @@ in stdenv.mkDerivation rec {
     cp ${nixSyntaxHighlight}/nix.nanorc $out/share/nano/
   '';
 
+  enableParallelBuilding = true;
+
   meta = {
     homepage = https://www.nano-editor.org/;
     description = "A small, user-friendly console text editor";
diff --git a/pkgs/applications/editors/nano/nano-2.9.1-darwin.patch b/pkgs/applications/editors/nano/nano-2.9.1-darwin.patch
new file mode 100644
index 0000000000000..d3a630d4486e6
--- /dev/null
+++ b/pkgs/applications/editors/nano/nano-2.9.1-darwin.patch
@@ -0,0 +1,9 @@
+--- a/lib/stat.c
++++ b/lib/stat.c
+@@ -48,4 +48,6 @@ orig_stat (const char *filename, struct stat *buf)
+ #include "sys/stat.h"
+ 
++#include "stat-time.h"
++
+ #include <errno.h>
+ #include <limits.h>