Skip to content

Commit fe26d01

Browse files
add option info to install for Nix-users. (#144)
- readme install information - How to remove spago, purescript dependencies with 1 line command. (unix only) - create pinned purs 0.13.6 dependencies with spago and the rest. shell.nix
1 parent 9d814dc commit fe26d01

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ Install all dependencies locally:
2020
make installDeps
2121
```
2222

23+
Install for Nix users:
24+
```
25+
# Remove purescript and spago and removing traling , from package.json
26+
sed --in-place '/purescript\|spago/d' ./package.json && sed --in-place '$!N;s/,\n }/\n }/;P;D' package.json
27+
nix-shell
28+
```
29+
2330
### Running Recipes
2431

2532
See a list of available recipe launch commands by running `make list`:

scripts/ReadmeContent.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ Install all dependencies locally:
2020
make installDeps
2121
```
2222

23+
Install for Nix users:
24+
```
25+
# Remove purescript and spago and removing traling , from package.json
26+
sed --in-place '/purescript\|spago/d' ./package.json && sed --in-place '$!N;s/,\n }/\n }/;P;D' package.json
27+
nix-shell
28+
```
29+
2330
### Running Recipes
2431

2532
See a list of available recipe launch commands by running `make list`:

shell.nix

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{ pkgs ? import <nixpkgs> {} }:
2+
3+
let
4+
easy-ps = import (
5+
pkgs.fetchFromGitHub {
6+
owner = "justinwoo";
7+
repo = "easy-purescript-nix";
8+
rev = "01ae1bc844a4eed1af7dfbbb202fdd297e3441b9";
9+
sha256 = "0jx4xb202j43c504gzh27rp9f2571ywdw39dqp6qs76294zwlxkh";
10+
}
11+
) {
12+
inherit pkgs;
13+
};
14+
15+
in
16+
pkgs.mkShell {
17+
buildInputs = [ easy-ps.purs easy-ps.psc-package-simple easy-ps.spago easy-ps.spago2nix ];
18+
}

0 commit comments

Comments
 (0)