Skip to content

Latest commit

 

History

History
54 lines (34 loc) · 1.03 KB

README.md

File metadata and controls

54 lines (34 loc) · 1.03 KB

Haskell project setup with haskell.nix

This template was generated using the following steps:

Add cachix binary cache

cachix use iohk

Note: you should run the above as trusted user, otherwise you'll need to manually add the entry to trusted-substituters in /etc/nix/nix.conf

Set up niv

niv init

Add These Nix files

Set up cabal project

nix-shell -p cabal-install --command 'cabal init --cabal-version=2.4 --license=MIT -p niv-shell'

Edit the generated .cabal file. Example in niv-shell.cabal.

Create git repository and initial commit

Haskell.nix relies on git, so you must set up the git repository and commit the .cabal file before nix-shell will work.

git add .
git commit -m "Add haskell.nix skeleton"

Test nix-shell

nix-shell

Enable lorri (optional)

lorri init