@@ -1,26 +1,30 @@
1+# Universal shell for PureScript repos
1−{ pkgs ? import <nixpkgs> { } }:
2+# { pkgs ? import <nixpkgs> { }
3+{ pkgs ? import (builtins.fetchGit {
4+ # https://github.com/NixOS/nixpkgs/releases/tag/20.09
5+ url = "https://github.com/nixos/nixpkgs/";
6+ ref = "refs/tags/20.09";
7+ rev = "cd63096d6d887d689543a0b97743d28995bc9bc3";
3− easy-ps = import
11+ easy-ps = import (builtins.fetchGit {
4− (pkgs.fetchFromGitHub {
6− repo = "easy-purescript-nix";
12+ url = "https://github.com/justinwoo/easy-purescript-nix.git";
7− rev = "0ba91d9aa9f7421f6bfe4895677159a8a999bf20";
13+ rev = "bbef4245cd6810ea84e97a47c801947bfec9fadc";
8− sha256 = "1baq7mmd3vjas87f0gzlq83n2l1h3dlqajjqr7fgaazpa9xgzs7q";
10− inherit pkgs;
14+ }) { inherit pkgs; };
13pkgs.mkShell {
16pkgs.mkShell {
14− buildInputs = [
17+ nativeBuildInputs = [
15− easy-ps.purs-0_13_8
18+ easy-ps.purs-0_14_3
16 easy-ps.spago
19 easy-ps.spago
17− pkgs.nodejs-13_x
22+ pkgs.nodejs-14_x
18 pkgs.nodePackages.bower
23 pkgs.nodePackages.bower
19− # pkgs.nodePackages.pulp
21− # The pulp nix derivation doesn't work, so to run pulp:
23− # $ node node_modules/pulp/index.js
25 LC_ALL = "C.UTF-8"; # https://github.com/purescript/spago/issues/507
25 LC_ALL = "C.UTF-8"; # https://github.com/purescript/spago/issues/507
26+ # https://github.com/purescript/spago#install-autocompletions-for-bash
28+ source <(spago --bash-completion-script `which spago`)