# Universal shell for PureScript repos # { pkgs ? import { } { pkgs ? import (builtins.fetchGit { # https://github.com/NixOS/nixpkgs/releases/tag/20.09 url = "https://github.com/nixos/nixpkgs/"; ref = "refs/tags/20.09"; rev = "cd63096d6d887d689543a0b97743d28995bc9bc3"; }) {} }: let easy-ps = import (builtins.fetchGit { url = "https://github.com/justinwoo/easy-purescript-nix.git"; rev = "bbef4245cd6810ea84e97a47c801947bfec9fadc"; }) { inherit pkgs; }; in pkgs.mkShell { nativeBuildInputs = [ easy-ps.purs-0_14_3 easy-ps.spago easy-ps.pulp easy-ps.psc-package pkgs.nodejs-14_x pkgs.nodePackages.bower ]; LC_ALL = "C.UTF-8"; # https://github.com/purescript/spago/issues/507 # https://github.com/purescript/spago#install-autocompletions-for-bash shellHook = '' source <(spago --bash-completion-script `which spago`) ''; }