Use a local .cabal dir for nix shell

This commit is contained in:
Harendra Kumar 2021-06-13 01:41:54 +05:30
parent 178b0bafda
commit c57d6db136

View File

@ -123,6 +123,7 @@ let haskellPackages =
else []; else [];
# Use a better prompt # Use a better prompt
shellHook = '' shellHook = ''
export CABAL_DIR="$(pwd)/.cabal.nix"
if test -n "$PS_SHELL" if test -n "$PS_SHELL"
then then
export PS1="$PS_SHELL\[$bldred\](nix)\[$txtrst\] " export PS1="$PS_SHELL\[$bldred\](nix)\[$txtrst\] "