Skip to content
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

Can't build using stack v1.4 and nix (nixos) #975

Open
dfordivam opened this issue Mar 20, 2017 · 8 comments
Open

Can't build using stack v1.4 and nix (nixos) #975

dfordivam opened this issue Mar 20, 2017 · 8 comments

Comments

@dfordivam
Copy link

dfordivam commented Mar 20, 2017

With this update to stack you will get the below error

"You cannot have packages and a shell-file filled at the same time in your nix-shell configuration."

Support reproducible builds via Nix (v1.4)
commercialhaskell/stack@931cb02

@ethercrow
Copy link
Member

Works for me with stack-1.4.0 on macOS. Do you have to have nix installed to trigger the issue?

@dfordivam dfordivam changed the title Can't build using stack v1.4 Can't build using stack v1.4 and nix (nixos) Jun 18, 2017
@dfordivam
Copy link
Author

Yes it is specific to nix... and if you have nixos, you just cannot build yi...

@Fuuzetsu
Copy link
Member

we don't have packages in top level stack.yaml, I suspect this ticket is out of date.

@dfordivam
Copy link
Author

I still see packages in stack.yaml... and the issue with build is still there...

flags: {}
nix:
shell-file: shell.nix
packages:

  • yi-core
  • yi-dynamic-configuration
  • yi-frontend-vty

@dfordivam
Copy link
Author

How am I supposed to build yi ?
do a stack build at top level?

@dfordivam
Copy link
Author

Some update..
I did nix-shell in top directory to enter the shell with required dependencies, then modified the yi/stack.yaml and added the local packages as in it. (like ../yi-core etc)
Then I did stack build, and everything seems to go on fine, until I hit the issue #931
I tried LANG=C stack build, but it did not help.

So I guess even if this issue is solved, I would still not be able to build yi.

@noughtmare
Copy link
Member

noughtmare commented Sep 26, 2017

Maybe you have LC_ALL set? That overrides the LANG option. So the solution then would be LC_ALL=C stack build.

@Fuuzetsu
Copy link
Member

somewhat related: yi was disabled in nixpkgs because it doesn't build there anymore; I don't plan to fix it in short term at least.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants