-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
814cf57
commit 83d5fbb
Showing
1 changed file
with
55 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,62 @@ | ||
{ stdenv, pkgs, lib, scriptDir }: | ||
|
||
with pkgs; | ||
let | ||
{ | ||
stdenv, | ||
pkgs, | ||
lib, | ||
scriptDir, | ||
}: | ||
with pkgs; let | ||
go = pkgs.go_1_21; | ||
|
||
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-18_x | ||
(yarn.override { nodejs = nodejs-18_x; }) | ||
nodePackages.typescript | ||
nodePackages.typescript-language-server | ||
nodePackages.npm | ||
python3 | ||
|
||
python311Packages.ledgerwallet | ||
go | ||
|
||
gopls | ||
delve | ||
(golangci-lint.override { buildGoModule = buildGo121Module; }) | ||
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 = 0; | ||
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/smartcontractkit/chainlink-testing-framework/tools/gotestloghelper@latest | ||
''; | ||
} | ||
mkShell' { | ||
nativeBuildInputs = | ||
[ | ||
stdenv.cc.cc.lib | ||
(rust-bin.stable.latest.default.override {extensions = ["rust-src"];}) | ||
nodejs-18_x | ||
(yarn.override {nodejs = nodejs-18_x;}) | ||
nodePackages.typescript | ||
nodePackages.typescript-language-server | ||
nodePackages.npm | ||
python3 | ||
|
||
python311Packages.ledgerwallet | ||
go | ||
|
||
gopls | ||
delve | ||
(golangci-lint.override {buildGoModule = buildGo122Module;}) | ||
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 = 0; | ||
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/smartcontractkit/chainlink-testing-framework/tools/gotestloghelper@latest | ||
''; | ||
} |