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: [EMAIL PROTECTED]
Jabber: [EMAIL PROTECTED]
ICQ: 174534205
{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;
  ";
}
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to