I am on NixOS
but I think this question should apply to any platform that use nix
.
I found by trial that stack
can be used with couple options to build a project but I don't fully understand difference among them,
stack
stack --system-ghc
stack --nix
Question :
- If I am using nix (NixOS in my case), is there any reason I will want to not use
--nix
argument? - What is the
nix
way to deal with haskell project, shouldcabal
(cabal2nix) be used in stead ofstack
? - I found that stack is rebuilding lots of libraries that already installed by
nix
, what is the reason of that?