[Nix-dev] Trying to install wxHaskell

Mads Lindstrøm mads_lindstroem at yahoo.dk
Sun May 24 15:59:24 CEST 2009


Hi

I am trying to install wxHaskell, but:

$ nix-env -i haskell-wx-ghc6.10.3-0.11.1.2

fails with:

> checking for OpenGL headers... not found
> checking for GL/gl.h... yes
> checking GL/glu.h usability... yes
> checking GL/glu.h presence... yes
> checking for GL/glu.h... yes
> checking for -lGL... no
> checking for -lMesaGL... no
> configure: error: OpenGL libraries not available
> builder for `/nix/store/q3cqifw8mqvzxh3qg3qk26xdzl49jmfg-wxGTK-2.8.10.drv' failed with exit code 1
> cannot build derivation `/nix/store/gm17n98i09jh7irahdd1sbczmkpplpml-haskell-wxcore-ghc6.10.3-0.11.1.2.drv': 1 inputs could not be realised
> cannot build derivation `/nix/store/wdqcjnm16qj0qvwad4s6yyyjwzj1svy7-haskell-wx-ghc6.10.3-0.11.1.2.drv': 1 inputs could not be realised
> error: build of `/nix/store/wdqcjnm16qj0qvwad4s6yyyjwzj1svy7-haskell-wx-ghc6.10.3-0.11.1.2.drv' failed

That is, it fails as wxGTK-2.8.10 fails. I am using
http://nixos.org/releases/nixpkgs/channels/nixpkgs-unstable channel.

I therefore wanted to try the subversion repository version. I did:

$ svn checkout https://svn.nixos.org/repos/nix/nixpkgs/trunk nixpkgs

and first tried to install wxGTK28 "manually":

$ nix-build -A wxGTK28
> store derivation is /nix/store/2cbjsrqjczgrnr05lbqd54qi0lybl0r0-wxGTK-2.8..10.drv
> /nix/store/f5nsdfjqm7w9pz5yyhmjv2ww39yadysq-wxGTK-2.8.10

and

$ nix-env -f . -iA wxGTK28
> replacing old `wxGTK-2.8.10'
> installing `wxGTK-2.8.10'

I assume that this means wxGTK28 is installed on my system. Trying to:

$ nix-env -i haskell-wx-ghc6.10.3-0.11.1.2

fails again and I assume that it somehow tries to use the old wxGTK from
the unstable channel. Correct ?

I am also confused as I thought the subversion branch and the unstable
channel would be close to identical. So why is one failing and the other
succeeding ?

After installing wxGTK28 I would try wxHaskell. And in my nixpkgs
checkout I can find wxHaskell here
pkgs/development/libraries/haskell/wxHaskell/ . But I cannot find it in
pkgs/top-level/all-packages.nix , and therefore I cannot figure out what
to call the wxhaskell package. That is, when:

$ nix-env -f . -iA <name of wxhaskell>

what do put in <name of wxhaskell> ?

And why have different names for packages in
pkgs/top-level/all-packages.nix and when doing nix-env -i ... ? E.g.
wxGTK-2.8.10 and wxGTK28. I realize that the Nix language cannot have
dashes in identifiers, but that could be changed. Or maybe we could
avoid dashes in package names.


Greetings,

Mads



-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20090524/3e3af3af/attachment.bin 


More information about the nix-dev mailing list