External Publication
Visit Post

Users of Stack and Nix: seeking feeback on sensible defaults

Haskell Community [Unofficial] March 27, 2026
Source

In my experience, the nix integration in stack is a footgun that I have always wanted to turn off.

In general, when using nix, I tend to have a nix-shell which provides both stack and ghc along with all my C dependencies.

I think fundamentally what this integration is trying to do is a layering violation. You normally want nix to be the top layer (for managing system packages) and then for stack to be below that (for managing Haskell packages). This tries to do magic that violates this and I just don’t think that can work well, especially if you are in a multi-language context where let’s say you also want to have some nodejs things installed by nix.

So, I would be in favour of removing this integration.

Discussion in the ATmosphere

Loading comments...