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:
Anton-Latukha 2020-04-18 11:22:31 +03:00 committed by John Wiegley
parent c61abbe6c0
commit 1373a21cf4
1 changed files with 5 additions and 5 deletions

View File

@ -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
```