[Nix-dev] Re: ncursesw instead of ncurses

Eelco Dolstra eelco at cs.uu.nl
Wed Jun 27 17:49:27 CEST 2007


Yurii G. Kudryashov wrote:
> 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).

Thanks for the patch :-)  It seems to work for the most part, but it causes two
problems in the Nixpkgs build:

- It doesn't work on Cygwin.  The build fails with:

Creating library file: ../lib/libncurses.dll.a
installing ../lib/cygncurses5w.dll as
/nix/store/z2yaqg3czaszl3bfvv31lv69c84zwqxd-ncurses-5.6/bin/cygncurses5w.dll
/usr/bin/install -c -m 755 ../lib/cygncurses5w.dll
/nix/store/z2yaqg3czaszl3bfvv31lv69c84zwqxd-ncurses-5.6/bin/cygncurses5w.dll
/usr/bin/install: cannot stat `../lib/cygncurses5w.dll': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/tmp/nix-1408-0/ncurses-5.6/ncurses'

Perhaps wide character support isn't supported on Windows?

- It breaks the build of the Glasgow Haskell Compiler:

/nix/store/r8fim8w3lmsfsjc661h41n0gfx30c1rn-ghc-6.4.2/lib/ghc-6.4.2/ghc-6.4.2:
error while loading shared libraries: libncurses.so.5: cannot open shared object
file: No such file or directory

This is almost certainly because GHC is bootstrapped with a pre-built binary
distribution of GHC, which expects a libncurses.so.5 somewhere.

Yurii, could you make wide-character support a function argument of the ncurses
Nix expression?  Then we could build without on Windows, pass a ncurses without
wide-character support to GHC, and use a build with wide-character support
everywhere else.

-- 
Eelco Dolstra | http://www.cs.uu.nl/~eelco



More information about the nix-dev mailing list