-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
62 lines (54 loc) · 1.36 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
56
57
58
59
60
61
62
{
stdenv,
pkgs,
lib,
scriptDir,
}:
with pkgs; let
go = pkgs.go_1_23;
mkShell' = mkShell.override {
# juno requires building with clang, not gcc
stdenv = pkgs.clangStdenv;
};
in
mkShell' {
nativeBuildInputs =
[
stdenv.cc.cc.lib
(rust-bin.stable.latest.default.override {extensions = ["rust-src"];})
nodejs_20
(yarn.override {nodejs = nodejs_20;})
nodePackages.typescript
nodePackages.typescript-language-server
nodePackages.npm
python3
python311Packages.ledgerwallet
go
gopls
delve
golangci-lint
gotools
kubectl
kubernetes-helm
postgresql_15 # psql
]
++ lib.optionals stdenv.isLinux [
# ledger specific packages
libudev-zero
libusb1
];
LD_LIBRARY_PATH = lib.makeLibraryPath [pkgs.zlib stdenv.cc.cc.lib]; # lib64
GOROOT = "${go}/share/go";
CGO_ENABLED = 1;
HELM_REPOSITORY_CONFIG = "${scriptDir}/.helm-repositories.yaml";
shellHook = ''
# Update helm repositories
helm repo update > /dev/null
# setup go bin for nix
export GOBIN=$HOME/.nix-go/bin
mkdir -p $GOBIN
export PATH=$GOBIN:$PATH
# install gotestloghelper
go install github.com/goplugin/plugin-testing-framework/tools/gotestloghelper@latest
'';
}