From 61e9f9cede682bffd3df237098eb5e039b634352 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Tue, 12 Oct 2010 19:39:30 +0000 Subject: [PATCH] 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 --- pkgs/development/libraries/ncurses/default.nix | 4 ++++ pkgs/development/libraries/ncurses/wint_t.patch | 14 ++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 pkgs/development/libraries/ncurses/wint_t.patch diff --git a/pkgs/development/libraries/ncurses/default.nix b/pkgs/development/libraries/ncurses/default.nix index dd3d60e48129..67c3bc5fe93f 100644 --- a/pkgs/development/libraries/ncurses/default.nix +++ b/pkgs/development/libraries/ncurses/default.nix @@ -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 diff --git a/pkgs/development/libraries/ncurses/wint_t.patch b/pkgs/development/libraries/ncurses/wint_t.patch new file mode 100644 index 000000000000..c9b34efd0bd9 --- /dev/null +++ b/pkgs/development/libraries/ncurses/wint_t.patch @@ -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 + #include + ++#ifndef _WINT_T ++#include ++#endif ++ + #if NCURSES_EXT_COLORS && USE_WIDEC_SUPPORT + #define if_EXT_COLORS(stmt) stmt + #define NetPair(value,p) (value).ext_color = (p), \