-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
02361de
commit ce7d99a
Showing
3 changed files
with
79 additions
and
68 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,59 +1,63 @@ | ||
{ pkgs }: | ||
with pkgs; | ||
let | ||
{pkgs}: | ||
with pkgs; let | ||
go = go_1_21; | ||
postgresql = postgresql_14; | ||
nodejs = nodejs-18_x; | ||
nodePackages = pkgs.nodePackages.override { inherit nodejs; }; | ||
nodePackages = pkgs.nodePackages.override {inherit nodejs;}; | ||
pnpm = pnpm_9; | ||
|
||
mkShell' = mkShell.override { | ||
# The current nix default sdk for macOS fails to compile go projects, so we use a newer one for now. | ||
stdenv = if stdenv.isDarwin then overrideSDK stdenv "11.0" else stdenv; | ||
stdenv = | ||
if stdenv.isDarwin | ||
then overrideSDK stdenv "11.0" | ||
else stdenv; | ||
}; | ||
in | ||
mkShell' { | ||
nativeBuildInputs = [ | ||
go | ||
goreleaser | ||
postgresql | ||
|
||
python3 | ||
python3Packages.pip | ||
protobuf | ||
protoc-gen-go | ||
protoc-gen-go-grpc | ||
|
||
foundry-bin | ||
|
||
curl | ||
nodejs | ||
nodePackages.pnpm | ||
# TODO: compiler / gcc for secp compilation | ||
go-ethereum # geth | ||
go-mockery | ||
|
||
# tooling | ||
gotools | ||
gopls | ||
delve | ||
golangci-lint | ||
github-cli | ||
jq | ||
|
||
# cross-compiling, used in CRIB | ||
zig | ||
|
||
# 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"; | ||
|
||
} | ||
mkShell' { | ||
nativeBuildInputs = | ||
[ | ||
go | ||
goreleaser | ||
postgresql | ||
|
||
python3 | ||
python3Packages.pip | ||
protobuf | ||
protoc-gen-go | ||
protoc-gen-go-grpc | ||
|
||
foundry-bin | ||
|
||
curl | ||
nodejs | ||
pnpm | ||
# TODO: compiler / gcc for secp compilation | ||
go-ethereum # geth | ||
go-mockery | ||
|
||
# tooling | ||
gotools | ||
gopls | ||
delve | ||
golangci-lint | ||
github-cli | ||
jq | ||
|
||
# cross-compiling, used in CRIB | ||
zig | ||
|
||
# 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"; | ||
} |