README: use proper cabal v2-* (Nix local build system) keys
Info: https://www.haskell.org/cabal/users-guide/nix-local-build-overview.html M README.md
This commit is contained in:
parent
c61abbe6c0
commit
1373a21cf4
10
README.md
10
README.md
|
@ -18,13 +18,13 @@ $ git clone --recursive https://github.com/haskell-nix/hnix.git
|
|||
...
|
||||
$ cd hnix
|
||||
$ nix-shell
|
||||
$ cabal new-configure --enable-tests
|
||||
$ cabal new-build
|
||||
$ cabal new-test
|
||||
$ cabal v2-configure --enable-tests
|
||||
$ cabal v2-build
|
||||
$ cabal v2-test
|
||||
# To run all of the tests, which takes up to a minute:
|
||||
$ env ALL_TESTS=yes cabal new-test
|
||||
$ env ALL_TESTS=yes cabal v2-test
|
||||
# To run only specific tests (see `tests/Main.hs` for a list)
|
||||
$ env NIXPKGS_TESTS=yes PRETTY_TESTS=1 cabal new-test
|
||||
$ env NIXPKGS_TESTS=yes PRETTY_TESTS=1 cabal v2-test
|
||||
$ ./dist/build/hnix/hnix --help
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue