forked from smartcontractkit/ccip
-
Notifications
You must be signed in to change notification settings - Fork 4
/
shell.nix
55 lines (50 loc) · 1.1 KB
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
let
go = go_1_19;
postgresql = postgresql_14;
nodejs = nodejs-16_x;
nodePackages = pkgs.nodePackages.override { inherit nodejs; };
in
mkShell {
nativeBuildInputs = [
go
postgresql
python3
python3Packages.pip
curl
nodejs
nodePackages.pnpm
# TODO: compiler / gcc for secp compilation
nodePackages.ganache
# py3: web3 slither-analyzer crytic-compile
# echidna
go-ethereum # geth
# parity # openethereum
go-mockery
# tooling
gotools
gopls
delve
golangci-lint
github-cli
# deployment
devspace
kubectl
kubernetes-helm
# gofuzz
] ++ lib.optionals stdenv.isLinux [
# some dependencies needed for node-gyp on pnpm install
pkg-config
libudev-zero
libusb1
];
LD_LIBRARY_PATH = "${stdenv.cc.cc.lib}/lib64:$LD_LIBRARY_PATH";
GOROOT = "${go}/share/go";
PGDATA = "db";
CL_DATABASE_URL = "postgresql://chainlink:chainlink@localhost:5432/chainlink_test?sslmode=disable";
shellHook = ''
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$PATH
'';
}