nano: fix darwin build
Broken by 366f1525ff47bfbee398eeac0cec0edd85e999ac in #32140.
This commit is contained in:
parent
db0c2be112
commit
14ec308514
@ -27,6 +27,8 @@ in stdenv.mkDerivation rec {
|
|||||||
sha256 = "0z5sxji8jh8sh0g3inbzndhsrbm4qyqlvjrxl5wkxbr61lnxa5k3";
|
sha256 = "0z5sxji8jh8sh0g3inbzndhsrbm4qyqlvjrxl5wkxbr61lnxa5k3";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [ ./nano-2.9.1-darwin.patch ];
|
||||||
|
|
||||||
nativeBuildInputs = [ texinfo ] ++ optional enableNls gettext;
|
nativeBuildInputs = [ texinfo ] ++ optional enableNls gettext;
|
||||||
buildInputs = [ ncurses ];
|
buildInputs = [ ncurses ];
|
||||||
|
|
||||||
@ -42,6 +44,8 @@ in stdenv.mkDerivation rec {
|
|||||||
cp ${nixSyntaxHighlight}/nix.nanorc $out/share/nano/
|
cp ${nixSyntaxHighlight}/nix.nanorc $out/share/nano/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = https://www.nano-editor.org/;
|
homepage = https://www.nano-editor.org/;
|
||||||
description = "A small, user-friendly console text editor";
|
description = "A small, user-friendly console text editor";
|
||||||
|
9
pkgs/applications/editors/nano/nano-2.9.1-darwin.patch
Normal file
9
pkgs/applications/editors/nano/nano-2.9.1-darwin.patch
Normal file
@ -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>
|
Loading…
x
Reference in New Issue
Block a user