diff --git a/pkgs/development/libraries/ncurses/default.nix b/pkgs/development/libraries/ncurses/default.nix index 67c3bc5fe93f..c714ade8910e 100644 --- a/pkgs/development/libraries/ncurses/default.nix +++ b/pkgs/development/libraries/ncurses/default.nix @@ -1,20 +1,30 @@ {stdenv, fetchurl, unicode ? true}: -stdenv.mkDerivation ( rec { +let + /* C++ bindings fail to build on `i386-pc-solaris2.11' with GCC 3.4.3: + . + It seems that it could be worked around by #including in the + right place, according to + , + but this is left as an exercise to the reader. + So disable them for now. */ + cxx = stdenv.system != "i386-sunos"; +in +stdenv.mkDerivation (rec { name = "ncurses-5.7"; - + src = fetchurl { url = "mirror://gnu/ncurses/${name}.tar.gz"; sha256 = "1x4q6kma6zgg438llbgiac3kik7j2lln9v97jdffv3fyqyjxx6qa"; }; - crossAttrs = { + crossAttrs = { patches = [ ./wint_t.patch ]; }; - + configureFlags = '' --with-shared --includedir=''${out}/include --without-debug - ${if unicode then "--enable-widec" else ""} + ${if unicode then "--enable-widec" else ""}${if cxx then "" else "--without-cxx-binding"} ''; selfBuildNativeInput = true; @@ -58,5 +68,8 @@ stdenv.mkDerivation ( rec { homepage = http://www.gnu.org/software/ncurses/; license = "X11"; + + maintainers = [ stdenv.lib.maintainers.ludo ]; + platforms = stdenv.lib.platforms.all; }; } // ( if stdenv.isDarwin then { postFixup = "rm $out/lib/*.so"; } else { } ) )