To install nix on OSX10.10, I first followed this nixos.org wiki guide shared by @boothead, and then found this guide on setting up a haskell environment with nix. See config.nix file below. I made one change from the tutorial, which is to change ghc783 to ghc784 (line 13).
After creating the file ~/.nixpkgs/config.nix
, I skipped the ghc76 stuff and went straight to nix-env -i env-ghc78
. It took a bit more than 2 hrs on an 8gb ram MBA for everything to build and link. The end result says
building path(s) ‘/nix/store/6rcj8chl2vim4mry5k7w8gs7nxifxixc-user-environment’
created 51 symlinks in user environment
Then finally: load-env-ghc78
loaded up a shell from which I could ghci
Don't know if it's important but for posterity, I'm going to make a note here that I was in $HOME/nixpkgs
when running the nix-env -i env-ghc78
and load-env-ghc78
commands. Using github.com/NixOS/nixpkgs.git commit 6a24650 dated Sat Feb 7 18:45:56 2015 +0100
Also, I found a write up by ocharles.org.uk about the advantages of nix and the difference between nix/nixpkgs/nixos, which was helpful but definitely see the wiki guide and chromaticleaves for installation.