-
Notifications
You must be signed in to change notification settings - Fork 7
/
flake.nix
66 lines (61 loc) · 1.75 KB
/
flake.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
63
64
65
66
{
description = "Development environment for the sp1 tendermint light client";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
solc = {
url = "github:hellwolf/solc.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
foundry.url = "github:shazow/foundry.nix/main";
rust-overlay.url = "github:oxalica/rust-overlay";
};
outputs = inputs: inputs.flake-utils.lib.eachSystem
[ "x86_64-linux" "aarch64-linux" "aarch64-darwin" ]
(
system:
let
pkgs = import inputs.nixpkgs {
inherit system;
overlays = [
(import inputs.rust-overlay)
inputs.foundry.overlay
inputs.solc.overlay
];
};
in
{
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
openssl
openssl.dev
pkg-config
foundry-bin
go-ethereum
solc_0_8_28
(inputs.solc.mkDefault pkgs solc_0_8_28)
bun
just
golangci-lint
go
jq
parallel
rust-bin.stable.latest.default
protobuf
buf
protoc-gen-go
protoc-gen-go-grpc
];
NIX_LD_LIBRARY_PATH = with pkgs.buildPackages; lib.makeLibraryPath [
stdenv.cc.cc
];
shellHook = ''
if [ -z "$(which cargo-prove)" ]; then
echo "SP1 toolchain is not installed. This is recommended to generate risc-v elfs. To install, please follow the instructions at"
echo "https://docs.succinct.xyz/getting-started/install.html"
fi
'';
};
}
);
}