Skip to content

Commit

Permalink
nano: fix darwin build
Browse files Browse the repository at this point in the history
Broken by 366f152 in #32140.
  • Loading branch information
orivej committed Nov 29, 2017
1 parent db0c2be commit 14ec308
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/applications/editors/nano/default.nix
Expand Up @@ -27,6 +27,8 @@ in stdenv.mkDerivation rec {
sha256 = "0z5sxji8jh8sh0g3inbzndhsrbm4qyqlvjrxl5wkxbr61lnxa5k3";
};

patches = [ ./nano-2.9.1-darwin.patch ];

nativeBuildInputs = [ texinfo ] ++ optional enableNls gettext;
buildInputs = [ ncurses ];

Expand All @@ -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";
Expand Down
9 changes: 9 additions & 0 deletions 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>

0 comments on commit 14ec308

Please sign in to comment.