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

Provide guidance on building as a Nix derivation #5

Closed
clacke opened this issue Nov 13, 2018 · 1 comment
Closed

Provide guidance on building as a Nix derivation #5

clacke opened this issue Nov 13, 2018 · 1 comment

Comments

@clacke
Copy link
Contributor

clacke commented Nov 13, 2018

As part of fractalide/fractalpools#54 I would like to build Bäckerei as a Nix derivation, so that I can use it from within a NixOS service.

I've managed to build it with stack --nix ..., but unfortunately the Nix wrapper around it, haskell.lib.buildStackProject, can only be used for setting up a build environment, not for actually building it within Nix, for NixOS/nixpkgs#32005 reasons.

I'm currently trying stack2nix, and it's generating a default.nix, but I'm having some dependency issues. Still figuring out how it's supposed to work.

@cwgoes
Copy link
Contributor

cwgoes commented Nov 13, 2018

Great idea, will take a look at when I have time - if you do get it working, please submit a PR, we'll gladly merge.

sjmackenzie added a commit to sjmackenzie/backerei that referenced this issue Nov 15, 2018
* Document how to reproduce
* gitignore the generated artefact

closes cryptiumlabs#5
sjmackenzie added a commit to sjmackenzie/backerei that referenced this issue Nov 15, 2018
* Document how to reproduce
* gitignore the generated artefact

closes cryptiumlabs#5
sjmackenzie added a commit to sjmackenzie/backerei that referenced this issue Nov 15, 2018
* Document how to reproduce
* gitignore the generated artefact

closes cryptiumlabs#5
sjmackenzie added a commit to sjmackenzie/backerei that referenced this issue Nov 15, 2018
* Add nix support using stack2nix
* Document how to reproduce
* gitignore the generated artefact

closes cryptiumlabs#5
@cwgoes cwgoes closed this as completed in 01606b6 Nov 24, 2018
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

Successfully merging a pull request may close this issue.

2 participants