Simple nix config to start haskell project
- Clone or fork that project
- Find
nix-haskell-starter
,NixHaskellStarter
,nixHaskellStarter
and rename to your project name.
- Run
nix-shell
from project root directory - Run
cabal build
under the nix shell - Run
hello
- Build image from
docker.nix
(could be run without nix shell environment):nix-build --argstr imageTag latest docker.nix
- Load image to docker images:
docker load < result
- Check docker images:
docker images