add shell.nix file to define build environment

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-05-27 12:08:12 +02:00
parent 97bfb18d67
commit bb1af59414
No known key found for this signature in database
GPG Key ID: 09AA5403E54D9931
2 changed files with 22 additions and 2 deletions

View File

@ -7,7 +7,6 @@ You can learn more about bonded curves and how Discover works [here](https://our
## Available Scripts
This project is based on Embark v4.0.1, with a few things customised for React.
```
yarn run build:dev
```
@ -15,9 +14,13 @@ or
```
yarn run build:prod
```
Builds the app into the `full-build` directory and creates the `app.zip` ready for use with ElasticBeanstalk.
You can use the Nix shell defined in [`shell.nix`](shell.nix) for build environment:
```
nix-shell --pure
```
## Deployed Contracts
Ropsten (the first is `STT`, the Status Test Token):

17
shell.nix Normal file
View File

@ -0,0 +1,17 @@
{ pkgs ? import <nixpkgs> {
config.permittedInsecurePackages = [ "nodejs-12.22.12" ];
} }:
pkgs.mkShell {
name = "discover-build";
buildInputs = with pkgs; [
git
zip
python2
nodejs-12_x
(yarn.override { nodejs = nodejs-12_x; })
];
NODE_NO_WARNINGS = 1;
}