We set the store-dir (outputs.cabal-store) explicitly in the cabal configuration file because cabal 3.10 has some context-dependent default for it: If ~/.cabal is not present, it uses the new XDG layout, otherwise the legacy layout.
Update: Also need to create ~/.cabal to avoid XDG fallback, so we create ~/.cabal/bin. Likely this makes the "set store-dir" patch obsolete, but we keep it for uniformity (it anyway happens on Windows, now on all platforms).
We set the
store-dir
(outputs.cabal-store
) explicitly in the cabal configuration file because cabal 3.10 has some context-dependent default for it: If~/.cabal
is not present, it uses the new XDG layout, otherwise the legacy layout.Update: Also need to create
~/.cabal
to avoid XDG fallback, so we create~/.cabal/bin
. Likely this makes the "setstore-dir
" patch obsolete, but we keep it for uniformity (it anyway happens on Windows, now on all platforms).Closes #210.
210