@@ -200,6 +200,8 @@ ghcHEAD () {
201#------------------------------------------------------------------------------
201#------------------------------------------------------------------------------
203+# Use the following nix expression for ghcjs
204+# nix-env -f https://github.com/composewell/nixpkgs/archive/refs/tags/22.05-composewell.tar.gz -iA pkgs.haskell.compiler.ghcjs
203ghcjs () {
205ghcjs () {
204 # We don't pass 'CABAL_BUILD_OPTIONS="--flag limit-build-mem"' here as
206 # We don't pass 'CABAL_BUILD_OPTIONS="--flag limit-build-mem"' here as
205 # ghcjs requires more memory to build. Adding a conditional for ghcjs in
207 # ghcjs requires more memory to build. Adding a conditional for ghcjs in