Skip to content

Commit 74e8d77

Browse files
committed
Add more info to build instructions to address concerns in #798
1 parent b95f730 commit 74e8d77

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ Second iteration of [Tsoder][tsoder]. Chat bot for [Tsoding][tsoding] streams.
1212

1313
### NixOS
1414

15+
Keep in mind that we are not using any Haskell packages from nixpkgs. All of the dependencies are supposed to be downloaded by cabal or stack during the build.
16+
17+
#### Cabal v1-build
18+
1519
```console
1620
$ nix-shell
1721
$ cabal sandbox init
@@ -22,6 +26,17 @@ $ cabal test
2226
$ cabal run HyperNerd secret.ini database.db
2327
```
2428

29+
#### Cabal v2-build
30+
31+
See [Nix-style Local Builds](https://www.haskell.org/cabal/users-guide/nix-local-build-overview.html) for more info
32+
33+
```console
34+
$ nix-shell
35+
$ cabal v2-build
36+
$ cabal v2-test
37+
$ cabal v2-run exe:HyperNerd secret.ini database.db
38+
```
39+
2540
### Stack
2641

2742
Native dependencies:

0 commit comments

Comments
 (0)