From fcd1999757441ca5e471b4f045cdfabcea67f0b3 Mon Sep 17 00:00:00 2001 From: Ramakrishnan Muthukrishnan <ram@rkrishnan.org> Date: Sun, 26 Apr 2015 23:20:55 +0530 Subject: [PATCH] README: a note on using nix-shell --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7714681..6914508 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,13 @@ I suggest using cabal sandbox. -Or you can use Nix pkg, in which case, typing `nix-shell' at the root of the -source code repo should drop you into a shell which has all the package +Or you can use [Nix](https://nixos.org/nix/), in which case, typing ```nix-shell``` +at the root of the source code repo should drop you into a shell which has all the package dependencies installed. ### Steps: +## for cabal sandbox clone the repo; cd functorrent; $ cabal sandbox init @@ -19,6 +20,12 @@ clone the repo; cd functorrent; $ cabal install --only-dependencies --enable-tests $ cabal build # binaries in ./dist/built/functorrent/* +## for nix + + $ nix-shell --pure + [...] + [nix-shell] $ cabal configure && cabal build + ## Goals - Become more profient with Haskell. -- 2.45.2