Cross-building ncursesw was not that easy; it needed this patch, at least for
the current nixpkgs (gcc, glibc) svn path=/nixpkgs/branches/stdenv-updates/; revision=24246
This commit is contained in:
@@ -8,6 +8,10 @@ stdenv.mkDerivation ( rec {
|
|||||||
sha256 = "1x4q6kma6zgg438llbgiac3kik7j2lln9v97jdffv3fyqyjxx6qa";
|
sha256 = "1x4q6kma6zgg438llbgiac3kik7j2lln9v97jdffv3fyqyjxx6qa";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
crossAttrs = {
|
||||||
|
patches = [ ./wint_t.patch ];
|
||||||
|
};
|
||||||
|
|
||||||
configureFlags = ''
|
configureFlags = ''
|
||||||
--with-shared --includedir=''${out}/include --without-debug
|
--with-shared --includedir=''${out}/include --without-debug
|
||||||
${if unicode then "--enable-widec" else ""}
|
${if unicode then "--enable-widec" else ""}
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
http://www.mail-archive.com/freewrt-developers@freewrt.org/msg01326.html
|
||||||
|
--- ncurses-5.6.orig/ncurses/curses.priv.h 2006-12-10 01:55:14.000000000 0100
|
||||||
|
+++ ncurses-5.6/ncurses/curses.priv.h 2008-02-11 13:12:04.000000000 +0100
|
||||||
|
@@ -253,6 +253,10 @@ color_t;
|
||||||
|
#include <term_entry.h>
|
||||||
|
#include <nc_tparm.h>
|
||||||
|
|
||||||
|
+#ifndef _WINT_T
|
||||||
|
+#include <wchar.h>
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#if NCURSES_EXT_COLORS && USE_WIDEC_SUPPORT
|
||||||
|
#define if_EXT_COLORS(stmt) stmt
|
||||||
|
#define NetPair(value,p) (value).ext_color = (p), \
|
||||||
Reference in New Issue
Block a user