From: Ramakrishnan Muthukrishnan Date: Sun, 26 Apr 2015 17:50:55 +0000 (+0530) Subject: README: a note on using nix-shell X-Git-Url: https://git.rkrishnan.org/frontends/module-simplejson._speedups.html?a=commitdiff_plain;h=fcd1999757441ca5e471b4f045cdfabcea67f0b3;p=functorrent.git README: a note on using nix-shell --- 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.