Error if `--enable-nix` is passed to `v2-command`
Open
attention: pr-welcome
cabal-install: nix integration
newcomer
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
It probably (hopefully) does nothing, but seems to confuse at least one user.
Alternatively, make `v2-build` etc do what it says, i.e.
```
--enable-nix Enable Nix integration: run commands through
nix-shell if a 'shell.nix' file exists
```
EDIT: I think it could possibly work, if `cabal-hash.txt` picks everything relevant. Probably cache won't be hit that often though. Also one would require that `~/.cabal/store` places indirect nix gc-roots. In short, I think it's hard to make `--enable-nix` work well, instead I'd recommend users to run `nix-shell` themselves and run `cabal v2-*` commands inside.
Contributor guide
Assessment
This issue has not been assessed yet.