on master help sign in
Use a local .cabal dir for nix shell
commitc57d6db1368ac59a3102d522b00deba011012179 authorHarendra Kumar <harendra@composewell.com> dateSun 13 Jun 2021, 01:41 (5 years ago) parent178b0ba
1 file changed+1
default.nix+1
default.nix+1
@@ -123,6 +123,7 @@ let haskellPackages =
123123 else [];
124124 # Use a better prompt
125125 shellHook = ''
126+ export CABAL_DIR="$(pwd)/.cabal.nix"
126127 if test -n "$PS_SHELL"
127128 then
128129 export PS1="$PS_SHELL\[$bldred\](nix)\[$txtrst\] "