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
nix-shell works by setting a bunch of env variables. It would be nice if among those variables it could set would be one that directed cabal to use a config file other than in ~/.cabal/config. That way, we could tweak all of cabal's other settings at once to make it play nicely in the nix environment. This is potentially useful in other settings as well when some other tool wants to put cabal into a specific environment.
Activity
sebright commentedon May 14, 2018
CABAL_CONFIGoverrides the config file location, though it looks like it's not documented:cabal/cabal-install/Distribution/Client/Config.hs
Lines 658 to 660 in 3c339d2
hvr commentedon May 14, 2018
r elatedly, it may be useful to have such an env-var for setting the
--project-filevalue via env as wellgbaz commentedon May 14, 2018
Great! cc @ElvishJerricco. Will leave this ticket open to record documenting it
[-]Allow config file to be set by an env variable[/-][+]document CABAL_CONFIG env variable.[/+]