-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathshell.nix
More file actions
74 lines (64 loc) · 1.59 KB
/
shell.nix
File metadata and controls
74 lines (64 loc) · 1.59 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{ stdenv, pkgs, lib }:
let
goPkg = if pkgs ? go_1_25 then pkgs.go_1_25 else pkgs.go;
nodejsPkg =
if pkgs ? nodejs_20 then pkgs.nodejs_20
else if pkgs ? nodejs_18 then pkgs.nodejs_18
else if builtins.hasAttr "nodejs-20_x" pkgs then pkgs."nodejs-20_x"
else if builtins.hasAttr "nodejs-18_x" pkgs then pkgs."nodejs-18_x"
else pkgs.nodejs;
in
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
(rust-bin.stable.latest.default.override {
extensions = ["rust-src"];
targets = [
"x86_64-unknown-linux-gnu" # Used on CI
"wasm32-unknown-unknown"
];
})
cargo-generate
cargo-tarpaulin
gcc
pkg-config
openssl
cacert
# Golang
# Keep this golang version in sync with the version in .tool-versions please
goPkg
gopls
delve
golangci-lint
gotools
docker-client
libiconv
# needed for test
(if pkgs ? k3d then k3d else kube3d)
kubectl
k9s
kubernetes-helm
which
git
gnumake
(pkgs.callPackage ./wasmd.nix {})
# NodeJS + TS
nodejsPkg
(yarn.override { nodejs = nodejsPkg; })
nodePackages.typescript
nodePackages.typescript-language-server
nodePackages.npm
python3
] ++ lib.optionals stdenv.isLinux [
# ledger specific packages
libudev-zero
libusb1
];
RUST_BACKTRACE = "1";
# Avoids issues with delve
CGO_CPPFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0";
HELM_REPOSITORY_CONFIG=./helm-repositories.yaml;
postShellHook = ''
go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest
helm repo update
'';
}