Skip to content

Commit 45ac8b5

Browse files
committed
feat(purs-nix): add minimal template
1 parent db1c79b commit 45ac8b5

8 files changed

Lines changed: 747 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
- aarch64-linux
1717
- x86_64-linux
1818
include:
19+
- template: purs-nix
20+
system: x86_64-linux
1921
- template: ctl
2022
system: x86_64-linux
2123
runs-on: ubuntu-latest

.github/workflows/update-flake-lock.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
- ""
1212
- haskell-nix
1313
- plutus
14+
- purs-nix
1415
- ctl
1516
runs-on: ubuntu-latest
1617
steps:

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ nix flake init -t github:LovelaceAcademy/nix-templates#template-name
1414

1515
- [haskell-nix](./haskell-nix): A haskell.nix template using hix
1616
- [plutus](./plutus): A plutus template using haskell.nix
17+
- [purs-nix](./purs-nix): A purs-nix template
1718
- [ctl](./ctl): A cardano-transaction-lib template using purs-nix
1819

1920
## FAQ
@@ -33,8 +34,8 @@ It depends on upstream supporting it, and also our capacity to test in our CI. R
3334

3435
It depends on the template:
3536

36-
- haskell-nix: you'll need at least 8GB RAM and 10GB HDD
37-
- plutus: you'll need at least 16GB RAM (for HDD) or 12GB RAM (for SSD). At least 20GB of available space.
37+
- haskell-nix, purs-nix: you'll need at least 8GB RAM and 10GB HDD
38+
- plutus, ctl: you'll need at least 16GB RAM (for HDD) or 12GB RAM (for SSD). At least 20GB of available space.
3839

3940
### Why it take soo long to build?
4041

flake.nix

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@
2424
Plutus docs available with `nix run .#serve-docs`
2525
'';
2626
};
27+
purs-nix = {
28+
path = ./purs-nix;
29+
description = "A purs-nix template";
30+
welcomeText = ''
31+
You just created a purs-nix project.
32+
Read more about it here: https://github.com/purs-nix/purs-nix
33+
34+
Development shell with `nix develop`
35+
Build with `nix build`
36+
'';
37+
};
2738
ctl = {
2839
path = ./ctl;
2940
description = "A cardano-transaction-lib template using purs-nix";

purs-nix/.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/bower_components/
2+
/node_modules/
3+
/.pulp-cache/
4+
/output/
5+
/generated-docs/
6+
/.psc-package/
7+
/.psc*
8+
/.purs*
9+
/.psa*
10+
/result

0 commit comments

Comments
 (0)