-
Notifications
You must be signed in to change notification settings - Fork 841
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
[nix] "error: undefined variable `xxx' at (string):1:yyy" #1584
Comments
Pinging @YPares |
@xor-xor Actually, it seems the package Updating the nix channel ( Do you mean by any chance |
@xor-xor Ok, I think I get it. You're referring to this package : http://hackage.haskell.org/package/brick right? |
@YPares Yes, that's the one. And thanks for the clarification re: On the other hand, I can think of at least one use case where supporting Haskell packages via For instance, I've been trying to build a project which uses What do you think..? |
The nix support allows you to do just that. If you have a package depending on terminfo, then add
to your project's |
0.4.0.2..? Which resolver did you use to get that..? I had to use |
I added it as an extra-dep. I used that version for my test because terminfo-0.4.0.1 ships by default with GHC so there was no particular issue building that one - it's there out-of-the-box. |
Allright... Everything is clear to me now. Thanks for the explanations! 😀 |
I'm getting some strange behavior from
stack build
when trying to install some extra deps vianix
section.Steps to reproduce:
cd /tmp && stack new test-project
cd test-project && vim stack.yaml
- change resolver to let's saylts-3.16
(with 3.19 and 3.20 there seems to be a problem with terminfo not picking up curses headers, which is a whole different story), and addnix
section defined as:(it doesn't have to be this particular package, though - I've got the same error with different ones)
3. run
stack build
Expected:
Minimal, working environment containing
brick-0.3.1
.Actual:
stack build --verbose
gives:After changing
nix
section to:...running
stack build --verbose
for the second time gives:...and the whole command finishes successfully (although w/o installing aforementioned dependency).
The difference between these two cases boils down to this fragment, which is not present in the latter:
(and of course,
[ brick haskell.packages.lts-3_16.ghc ]
vs[ haskell.packages.lts-3_16.ghc ]
, but that's not where the error comes from).I've tested that on my other machine, which runs OS X + Nix + stack 1.0.0 (instead of NixOS + stack 0.1.10.0, as reported here) and I get exactly the same error.
The text was updated successfully, but these errors were encountered: