utdemir / hs-nix-template

A Haskell project template that uses Nix and comes with cabal-install, ghcid, ormolu, haskell-language-server and more.
MIT License
102 stars 12 forks source link

Summoner integration and more #15

Open bolt12 opened 4 years ago

bolt12 commented 4 years ago

Hi, I stumbled upon this repo from reading https://discourse.nixos.org/t/nix-haskell-development-2020/6170 and it was very useful in my journey with nix.

I developed a personal version that includes summoner Haskell project scaffolding and lorri integration! Unfortunately it's not a fork but I'm opening this issue to share what I did since it can fit other persons necessities too.

The repo is here: https://github.com/bolt12/hs-nix-template

Please tell me if you think I stepped a line somewhere.

utdemir commented 4 years ago

Hey, I'm glad you found it useful!

That's great! I haven't thought of using summoner and cookiecutter together before, I think summoner is far more capable than cookiecutter; so probably just adding Nix support to summoner would be the simplest option in the long run. There is an issue [1] discussing that if you are interested.

By the way, I am also considering adding lorri support to this one (should be as easy as adding .envrc with contents eval "$(lorri direnv)").

I will keep this issue open, so people can discover your project.

[1] https://github.com/kowainik/summoner/issues/149

bolt12 commented 4 years ago

Awesome!

Yeah lorri integration is pretty easy and I also automated niv init so as to not worry with always having to manually change the repo to have the latest nixpkgs pin. Since niv is available in the dev environment, one can always use niv to update the pin to something else too.

I didn't thought of adding nix support to summoner! I'll look into it!