[Nix-dev] ncursesw instead of ncurses

Yurii G. Kudryashov urkud at mccme.ru
Sat Jun 23 20:15:14 CEST 2007


Hello!

I'm trying to run NixOS in ru_RU.UTF-8 console. It seems that 
current default compilation of ncurses library doesn't compile 
multi-byte support (ncursesw) library. Ncursesw is 
source-compatible with ncurses. Why not to use it instead of 
ncurses?

I've attached my ncurses/default.nix based on LFS 
(www.linuxfromscratch.org) variant. I've tested it with finch 
(console version of pigdin), and it works.  Also I've got rid of 
builder.sh.
-- 
Yura,
mailto: urkud at mccme.ru
Jabber: urkud.urkud at gmail.com
ICQ: 174534205
-------------- next part --------------
{stdenv, fetchurl}:

stdenv.mkDerivation {
  name = "ncurses-5.6";
  #builder = ./builder.sh;
  src = fetchurl {
    url = ftp://ftp.nluug.nl/pub/gnu/ncurses/ncurses-5.6.tar.gz;
    md5 = "b6593abe1089d6aab1551c105c9300e3";
  };
  preConfigure="configureFlags=\"--with-shared --includedir=$out/include --enable-widec\"";
  postInstall="
    chmod -v 644 $out/lib/libncurses++w.a
    for lib in curses ncurses form panel menu; do
      rm -vf $out/lib/lib\${lib}.so
      echo \"INPUT(-l\${lib}w)\" > $out/lib/lib\${lib}.so
      ln -svf lib\${lib}w.a $out/lib/lib\${lib}.a
    done;
  ";
}


More information about the nix-dev mailing list