I'm using the splendid Haskell library Miso, which recommends using Nix. The README walks us through a simple project which can be built with nix-build
. The documentation for Miso hints that I can do:
nix-shell -A env
cabal configure --ghcjs
cabal build
which also builds the project, although it places the result in a different place.
Are nix-build
and cabal build
within nix-shell guaranteed to produce the same output? More generally, given a .nix
expression how would I workout what steps (such as cabal configure) are required to replicate it's behavior?