Skip to content

Commit bb1af59

Browse files
committed
add shell.nix file to define build environment
Signed-off-by: Jakub Sokołowski <[email protected]>
1 parent 97bfb18 commit bb1af59

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,20 @@ You can learn more about bonded curves and how Discover works [here](https://our
77
## Available Scripts
88

99
This project is based on Embark v4.0.1, with a few things customised for React.
10-
1110
```
1211
yarn run build:dev
1312
```
1413
or
1514
```
1615
yarn run build:prod
1716
```
18-
1917
Builds the app into the `full-build` directory and creates the `app.zip` ready for use with ElasticBeanstalk.
2018

19+
You can use the Nix shell defined in [`shell.nix`](shell.nix) for build environment:
20+
```
21+
nix-shell --pure
22+
```
23+
2124
## Deployed Contracts
2225

2326
Ropsten (the first is `STT`, the Status Test Token):

shell.nix

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{ pkgs ? import <nixpkgs> {
2+
config.permittedInsecurePackages = [ "nodejs-12.22.12" ];
3+
} }:
4+
5+
pkgs.mkShell {
6+
name = "discover-build";
7+
8+
buildInputs = with pkgs; [
9+
git
10+
zip
11+
python2
12+
nodejs-12_x
13+
(yarn.override { nodejs = nodejs-12_x; })
14+
];
15+
16+
NODE_NO_WARNINGS = 1;
17+
}

0 commit comments

Comments
 (0)