Skip to content

Commit 2432073

Browse files
committed
Add publishing helpers
1 parent 4ee3cd2 commit 2432073

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@
1111
/.spago/
1212
.direnv
1313
*.swp
14+
/generated-docs

tools/publish-shell.nix

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Universal shell for PureScript repos
2+
{ pkgs ? import (builtins.fetchGit {
3+
# https://github.com/NixOS/nixpkgs/releases/tag/21.11
4+
url = "https://github.com/nixos/nixpkgs/";
5+
ref = "refs/tags/21.11";
6+
rev = "a7ecde854aee5c4c7cd6177f54a99d2c1ff28a31";
7+
}) {}
8+
}:
9+
let
10+
easy-ps-src = builtins.fetchGit {
11+
url = "https://github.com/justinwoo/easy-purescript-nix.git";
12+
ref = "master";
13+
rev = "0ad5775c1e80cdd952527db2da969982e39ff592";
14+
};
15+
easy-ps = import easy-ps-src { inherit pkgs; };
16+
in
17+
pkgs.mkShell {
18+
nativeBuildInputs = [
19+
easy-ps.purs-0_15_0
20+
easy-ps.spago
21+
easy-ps.pulp-16_0_0-0
22+
easy-ps.psc-package
23+
easy-ps.purs-tidy
24+
pkgs.nodejs-16_x
25+
pkgs.nodePackages.bower
26+
];
27+
LC_ALL = "C.UTF-8"; # https://github.com/purescript/spago/issues/507
28+
# https://github.com/purescript/spago#install-autocompletions-for-bash
29+
shellHook = ''
30+
source <(spago --bash-completion-script `which spago`)
31+
'';
32+
}

0 commit comments

Comments
 (0)