You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
If nix-shell <args> fails, Stack just outputs the Nix error #6861
To address this, I separated an initial nix-instantiate step from the final nix-shell step, and introduced separate --nix-instantiate-options=OPTIONS, just in case.
Not related to this issue, but I've seen on discourse that you asked if people where using nix integration : I do and this is one of the (many) reason I am using stack. So please, don't remove it.
Activity
Re #6861 Prettify existing Nix integration exceptions
Re #6861 Prettify existing Nix integration exceptions
Fix #6861 Add nix-shell command failure exception
Merge pull request #6862 from commercialhaskell/re6861
Fix #6861 Use nix-instantiate command, with failure exception
Fix #6861 Use nix-instantiate command, with failure exception
Fix #6861 Use nix-instantiate command, with failure exception
Fix #6861 Use nix-instantiate command, with failure exception
Fix #6861 Use nix-instantiate command, with failure exception
Fix #6861 Use nix-instantiate command, with failure exception
Fix #6861 Use nix-instantiate command, with failure exception
Fix #6861 Use nix-instantiate command, with failure exception
mpilgrem commentedon Mar 18, 2026
To address this, I separated an initial
nix-instantiatestep from the finalnix-shellstep, and introduced separate--nix-instantiate-options=OPTIONS, just in case.maxigit commentedon Mar 25, 2026
Not related to this issue, but I've seen on discourse that you asked if people where using nix integration : I do and this is one of the (many) reason I am using stack. So please, don't remove it.
Fix #6861 Use nix-instantiate command, with failure exception
Fix #6861 Use nix-instantiate command, with failure exception
Fix #6861 Use nix-instantiate command, with failure exception
mpilgrem commentedon Jul 7, 2026
@maxigit, as a user of Stack's Nix integration, you may be interested in the associated pull request:
EDIT: I wrote too soon. My testing has revealed a problem with locales, which I am looking into.
maxigit commentedon Jul 8, 2026
@mpilgrem Thanks for letting me know. However I moved away from Nix and do my prod build inside a docker container instead ...
Re #6861 Specify LANG=C.UTF-8 rather than en_US.UTF-8
Merge pull request #6947 from commercialhaskell/re6861
Fix #6861 Use nix-instantiate command, with failure exception
Merge pull request #6945 from commercialhaskell/fix6861