From 6955a55a36a3e2f9bf7319b14b0496bb221930c8 Mon Sep 17 00:00:00 2001 From: Anton-Latukha Date: Tue, 29 Sep 2020 01:49:55 +0300 Subject: [PATCH] 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. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a7d3cdc..9fbed0e 100644 --- a/README.md +++ b/README.md @@ -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 +RTS -xc +cabal v2-run hnix -- -v5 --trace +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 +RTS -p +cabal v2-run hnix -- +RTS -p ``` ## Using the Cachix binary cache