-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add nix dependencies to stack.yaml #69
base: master
Are you sure you want to change the base?
Conversation
Nice, thanks! Does it still work if you enable the |
Nope!
OpenGL is a problematic thing, I think. To my understanding (and I may be totally wrong there) you need to use the package that's specific to your GPU, so I don't know how this should be handled. And if I add
|
Cool! That last error is possibly a good sign. Try removing the local If that doesn't work try starting over but removing the |
fwiw, the nix build file for fltk says it needs opengl, which can't be right
https://github.com/NixOS/nixpkgs/blob/360089b3521af0c69a5167870c80851dedf19d76/pkgs/development/libraries/fltk/default.nix#L46
…On Jan 15, 2018 11:03 AM, "deech" ***@***.***> wrote:
Cool! That last error is possibly a good sign. Try removing the local
.stack-work directory, doing a stack clean and then stack build. I would
also check that the fltk package from Nix is compiled with --enable-gl.
If that doesn't work try starting over but removing the fltk Nix
dependency and doing stack build --flag fltkhs:bundled --flag
fltkhs:opengl. This builds and links the bundled FLTK .
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#69 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACNoMX_mBJLFwdXxPxUeRkPlVP4whDl2ks5tK6DhgaJpZM4Rd9Rp>
.
|
I had to get more aggressive than |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since as far as I know stack doesn't have conditionals, I'd have two stack files: this, called stack-opengl.yaml
, and a stack.yaml
with only the default flags' deps:
nix:
packages:
- autoconf
- c2hs # still needs this, right?
- fltk
- libjpeg
(by "this" I mean the file in the PR) also, is |
(I have no idea, I'm at an "adding stuff until it seems to work" knowledge level here) |
(same lol) also, we want the flag:
but idk if stack flags work with the local/current project (they should). |
i.e. can you test this?
|
|
oh, should be qualified:
|
Yep, seems to work. |
I needed this to compile on NixOS.