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:
parent
57df19fe85
commit
61e9f9cede
@ -7,6 +7,10 @@ stdenv.mkDerivation ( rec {
|
||||
url = "mirror://gnu/ncurses/${name}.tar.gz";
|
||||
sha256 = "1x4q6kma6zgg438llbgiac3kik7j2lln9v97jdffv3fyqyjxx6qa";
|
||||
};
|
||||
|
||||
crossAttrs = {
|
||||
patches = [ ./wint_t.patch ];
|
||||
};
|
||||
|
||||
configureFlags = ''
|
||||
--with-shared --includedir=''${out}/include --without-debug
|
||||
|
14
pkgs/development/libraries/ncurses/wint_t.patch
Normal file
14
pkgs/development/libraries/ncurses/wint_t.patch
Normal file
@ -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), \
|
Loading…
x
Reference in New Issue
Block a user