forked from smartcontractkit/chainlink-solana
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
49 lines (42 loc) · 1.15 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
{ stdenv, pkgs, lib }:
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
(rust-bin.stable.latest.default.override { extensions = ["rust-src"]; })
# lld_10
llvm_11
stdenv.cc.cc.lib
pkg-config
openssl
# Solana
# solana.solana-full
# spl-token-cli
# anchor
# Golang
# Keep this golang version in sync with the version in .tool-versions please
go_1_21
gopls
delve
golangci-lint
gotools
# NodeJS + TS
nodePackages.typescript
nodePackages.typescript-language-server
nodePackages.npm
# Keep this nodejs version in sync with the version in .tool-versions please
nodejs-18_x
(yarn.override { nodejs = nodejs-18_x; })
python3
] ++ lib.optionals stdenv.isLinux [
# ledger specific packages
libudev-zero
libusb1
];
RUST_BACKTRACE = "1";
LD_LIBRARY_PATH = lib.makeLibraryPath [pkgs.zlib stdenv.cc.cc.lib]; # lib64
# Avoids issues with delve
CGO_CPPFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0";
shellHook = ''
# install gotestloghelper
go install github.com/smartcontractkit/chainlink-testing-framework/tools/gotestloghelper@latest
'';
}