Skip to content

Commit

Permalink
feat(purs-nix): add minimal template
Browse files Browse the repository at this point in the history
  • Loading branch information
klarkc committed Jan 10, 2023
1 parent db1c79b commit 45ac8b5
Show file tree
Hide file tree
Showing 8 changed files with 747 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
- aarch64-linux
- x86_64-linux
include:
- template: purs-nix
system: x86_64-linux
- template: ctl
system: x86_64-linux
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update-flake-lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
- ""
- haskell-nix
- plutus
- purs-nix
- ctl
runs-on: ubuntu-latest
steps:
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ nix flake init -t github:LovelaceAcademy/nix-templates#template-name

- [haskell-nix](./haskell-nix): A haskell.nix template using hix
- [plutus](./plutus): A plutus template using haskell.nix
- [purs-nix](./purs-nix): A purs-nix template
- [ctl](./ctl): A cardano-transaction-lib template using purs-nix

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

It depends on the template:

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

### Why it take soo long to build?

Expand Down
11 changes: 11 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@
Plutus docs available with `nix run .#serve-docs`
'';
};
purs-nix = {
path = ./purs-nix;
description = "A purs-nix template";
welcomeText = ''
You just created a purs-nix project.
Read more about it here: https://github.com/purs-nix/purs-nix
Development shell with `nix develop`
Build with `nix build`
'';
};
ctl = {
path = ./ctl;
description = "A cardano-transaction-lib template using purs-nix";
Expand Down
10 changes: 10 additions & 0 deletions purs-nix/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/bower_components/
/node_modules/
/.pulp-cache/
/output/
/generated-docs/
/.psc-package/
/.psc*
/.purs*
/.psa*
/result
Loading

0 comments on commit 45ac8b5

Please sign in to comment.