README: use cabal v2-run for locating and executing binary

Old path is not existent, since `dist-newstyle` is used, path is ugly to
construct, so far settling for `cabal v2-run` autolocating `hnix`, thou the
problem is that Nix-env has GHC 8.8.3, and HNix binary builds only under
GHC >= 8.10.
This commit is contained in:
Anton-Latukha 2020-09-29 01:49:55 +03:00
parent 6eb309e817
commit 6955a55a36
No known key found for this signature in database
GPG Key ID: 3D84C07E91802E41
1 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ use:
nix-shell
cabal v2-configure --enable-tests --enable-profiling --flags=profiling --flags=tracing
cabal v2-build
./dist/build/hnix/hnix -v5 --trace <args> +RTS -xc
cabal v2-run hnix -- -v5 --trace <args> +RTS -xc
```
Note that this will run quite slowly, but will give the most information as to
@ -94,7 +94,7 @@ To build `hnix` with profiling enabled:
nix-shell
cabal v2-configure --enable-tests --enable-profiling --flags=profiling
cabal v2-build
./dist/build/hnix/hnix <args> +RTS -p
cabal v2-run hnix -- <args> +RTS -p
```
## Using the Cachix binary cache