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 [];
# Use a better prompt
shellHook = ''
export CABAL_DIR="$(pwd)/.cabal.nix"
if test -n "$PS_SHELL"
then
export PS1="$PS_SHELL\[$bldred\](nix)\[$txtrst\] "