forked from linera-io/linera-protocol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.nix
More file actions
37 lines (36 loc) · 775 Bytes
/
default.nix
File metadata and controls
37 lines (36 loc) · 775 Bytes
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
{ crane, pkgs, rust-toolchain, libclang, rocksdb, git }:
((crane.mkLib pkgs).overrideToolchain rust-toolchain).buildPackage {
pname = "linera";
src = ./.;
cargoExtraArgs = "-p linera-service";
nativeBuildInputs = with pkgs; [
clang
pkg-config
rocksdb
protobufc
];
buildInputs = with pkgs; [
clang.cc.lib
libiconv
nodejs
openssl
protobuf
git
wasm-bindgen-cli
pnpm
];
checkInputs = with pkgs; [
# for native testing
jq
kubernetes-helm
kind
kubectl
# for Wasm testing
chromium
chromedriver
];
passthru = { inherit rust-toolchain; };
RUST_SRC_PATH = rust-toolchain.availableComponents.rust-src;
LIBCLANG_PATH = "${libclang.lib}/lib";
ROCKSDB_LIB_DIR = "${rocksdb}/lib";
}