xmonad / X11

A Haskell binding to the X11 graphics library.

Home Page:http://hackage.haskell.org/package/X11

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install on nixos?

sid-kap opened this issue · comments

Has anyone successfully installed this package on Nixos? I keep getting the following error message:

checking for X... no
    configure: error: in `/run/user/1000/stack10666/X11-1.6.1.2':
    configure: error: X11 libraries not found, so X11 package cannot be built
    See `config.log' for more details

I have the following packages listed in my stack.yaml:

nix:
  enable: true
  packages: 
    - x11
    - xorg.libX11
    - xorg.libXext
    - xorg.libXinerama
    - xorg.libXrandr
    - xorg.libXrender

Which libraries does the package depend on, and where does it look for them?

This error message is about the C libraries/headers. I haven't used stack, so I can't be sure, but I suspect it's not capable of fetching and installing C libraries; use your package manager instead and make sure to grab the -dev or -devel versions.

Thanks! I think it's actually a stack problem, so I'll try getting help there.

What's in config.log?

On Sun, Oct 23, 2016 at 4:59 PM, Sid Kapur notifications@github.com wrote:

Has anyone successfully installed this package on Nixos? I keep getting
the following error message:

checking for X... no
configure: error: in /run/user/1000/stack10666/X11-1.6.1.2': configure: error: X11 libraries not found, so X11 package cannot be built Seeconfig.log' for more details

I have the following packages listed in my stack.yaml:

nix:
enable: true
packages:
- x11
- xorg.libX11
- xorg.libXext
- xorg.libXinerama
- xorg.libXrandr
- xorg.libXrender


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#46, or mute the thread
https://github.com/notifications/unsubscribe-auth/AB8SoHRYLpp-VHqzGuGkm6jtxp10TgcFks5q28qggaJpZM4KeP0u
.

brandon s allbery kf8nh sine nomine associates
allbery.b@gmail.com ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

This is actually not a helpful suggestion in this case, because stack in
nix mode does integrate and the quoted stack.yaml fragment should be
putting the X11 dev libs into the build environment.

On Mon, Oct 24, 2016 at 10:43 AM, Daniel Wagner notifications@github.com
wrote:

This error message is about the C libraries/headers. I haven't used stack,
so I can't be sure, but I suspect it's not capable of fetching and
installing C libraries; use your package manager instead and make sure to
grab the -dev or -devel versions.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#46 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AB8SoAlJLYlUut2ZIVhV1zQM9M7njoE-ks5q3MQCgaJpZM4KeP0u
.

brandon s allbery kf8nh sine nomine associates
allbery.b@gmail.com ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

I'm actually not sure where to find config.log, in any case. I don't know enough about stack internals to know where to look.

Something like
~/.stack-work/dist/x86_64-linux/X11-1.6.0.1/build/config.log probably.

On Tue, Oct 25, 2016 at 2:27 PM, Sid Kapur notifications@github.com wrote:

I'm actually not sure where to find config.log, in any case. I don't know
enough about stack internals to know where to look.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#46 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AB8SoGJh17p3TwmTsXLxx9-BAPFQ6uFMks5q3koogaJpZM4KeP0u
.

brandon s allbery kf8nh sine nomine associates
allbery.b@gmail.com ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

I managed to build X11 by also including gcc under packages in the stack.yaml

See also commercialhaskell/stack#2735

Minoru/dotfiles@d81aa6c

The above might be useful