Skip to content

Cmdv/niv-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Haskell Purescript Nix Niv template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages