git.iko.soy/typeable/nixpkgs
on master help sign in
nano: fix darwin build

Broken by 366f1525ff47bfbee398eeac0cec0edd85e999ac in #32140.

commit14ec308514ac1a7498687349134e7c0ef0fbfd53 authorOrivej Desh <orivej@gmx.fr> dateWed 29 Nov 2017, 01:22 (9 years ago) parentdb0c2be
2 files changed+13
pkgs/applications/editors/nano/default.nix+4 pkgs/applications/editors/nano/nano-2.9.1-darwin.patch+9
pkgs/applications/editors/nano/default.nix+4
@@ -27,6 +27,8 @@ in stdenv.mkDerivation rec {
2727 sha256 = "0z5sxji8jh8sh0g3inbzndhsrbm4qyqlvjrxl5wkxbr61lnxa5k3";
2828 };
2929
30+ patches = [ ./nano-2.9.1-darwin.patch ];
31+
3032 nativeBuildInputs = [ texinfo ] ++ optional enableNls gettext;
3133 buildInputs = [ ncurses ];
3234
@@ -42,6 +44,8 @@ in stdenv.mkDerivation rec {
4244 cp ${nixSyntaxHighlight}/nix.nanorc $out/share/nano/
4345 '';
4446
47+ enableParallelBuilding = true;
48+
4549 meta = {
4650 homepage = https://www.nano-editor.org/;
4751 description = "A small, user-friendly console text editor";
pkgs/applications/editors/nano/nano-2.9.1-darwin.patchnew file+9
@@ -0,0 +1,9 @@
1+--- a/lib/stat.c
2++++ b/lib/stat.c
3+@@ -48,4 +48,6 @@ orig_stat (const char *filename, struct stat *buf)
4+ #include "sys/stat.h"
5+
6++#include "stat-time.h"
7++
8+ #include <errno.h>
9+ #include <limits.h>