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
Error if --enable-nix is passed to v2-command #6444
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.
Activity
phadej commentedon Dec 18, 2019
Similarly, we should error for
Pitometsu commentedon Dec 18, 2019
Yeah, I did expect an option in
cabal.project.localfor that, or deprecation message in case it does nothing.dschrempf commentedon Jun 1, 2021
I just bumped into that.
Does not seem to honor
shell.nix. This should be an error.jneira commentedon Mar 23, 2022
The integration with nix was heavily discussed here: #4646
Throw an error is the very least thing we should do.
swinilohani616-dot commentedon Nov 9, 2026
Hi! I came across this issue and noticed that Nix integration was deprecated in #9205 and later removed in #11191.
Since
--enable-nixis no longer supported, it looks like this issue is no longer relevant.Would it make sense to close this now, or is there anything I'm missing?