[Nix-dev] Re: ncursesw instead of ncurses

Yurii G. Kudryashov urkud at mccme.ru
Sun Jun 24 14:54:09 CEST 2007


On Sat, Jun 23, 2007 at 10:15:14PM +0400, Yurii G. Kudryashov wrote:
> Hello!
>
> 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.
I've corrected ugly preConfigure="configureFlags=\"... \"" string (thanks to Michael Raskin).
-- 
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";
  };
  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