Skip to content

Commit

Permalink
* Add nix support using stack2nix
Browse files Browse the repository at this point in the history
* Document how to reproduce
* gitignore the generated artefact

closes cryptiumlabs#5
  • Loading branch information
sjmackenzie committed Nov 15, 2018
1 parent 5b266bc commit 6f9d7e6
Show file tree
Hide file tree
Showing 3 changed files with 39,952 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.ghci
.stack-work/
backerei.cabal
result
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,17 @@ and cross-check against a payout database generated locally.
make build
```

#### Building for Nix

```bash
$ nix-shell -p stack2nix
$ stack2nix --revision 5b266bcd84d570de8ab06cb79b2457c0992080d4 https://github.com/cryptiumlabs/backerei.git > default.nix
$ nix-build -A backerei
```
* Change the above revision number to whatever is the latest `backerei` release.
* You'll also need to manually remove some faulty generated code by `stack2nix`.
- For example; `stack2nix` might generate `{inherit (pkgs) util;};` on line 27042. Remove the `inherit (pkgs) util;` so just the `{};` remains.

#### Testing

```bash
Expand Down
Loading

0 comments on commit 6f9d7e6

Please sign in to comment.