haskell / haskell/cabal

Error if `--enable-nix` is passed to `v2-command`

Open
#6,444 4 comments 0 reactions 0 assignees View on GitHub
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

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.