commercialhaskell / commercialhaskell/stack

Should `--no-install-ghc` be the default, with Nix integration enabled?

Open
#6,860 0 comments 0 reactions 1 assignee Claimed by @mpilgrem View on GitHub
component: nix type: discuss
Dominant language
Haskell
Stars
4.1k
Forks
850
Avg merge
10h 37m
Merged PRs (30d)
4

Description

Stack's Nix integration, when enabled, implies `--system-ghc` but does not imply `--no-install-ghc`.

In principle, a user-supplied `shell.nix` file might not put the needed (specified) GHC version on the path in the Nix environment without the `nix-shell` command failing. With `--install-ghc`, Stack will go on to try to install the specified GHC version.

Elsewhere, @chreekat has reported that he has experienced this.

Is `--install-ghc` a sensible default, when Stack's Nix integration is specified?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.