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
42 lines (42 loc) · 1.06 KB
/
default.nix
File metadata and controls
42 lines (42 loc) · 1.06 KB
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
{ crane, pkgs, rust-toolchain, libclang, rocksdb, git, system, nix-gitignore, playwright-driver }:
((crane.mkLib pkgs).overrideToolchain rust-toolchain).buildPackage {
pname = "linera";
src = nix-gitignore.gitignoreSource [] (builtins.path {
name = "source";
path = ./.;
});
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; [
jq
kubernetes-helm
kind
kubectl
] ++ lib.optionals (system != "arm64-apple-darwin") [
# for Wasm testing
# Chromium doesn't build on macOS so we can't run these tests there
chromium
chromedriver
];
doCheck = false;
passthru = { inherit rust-toolchain; };
RUST_SRC_PATH = rust-toolchain.availableComponents.rust-src;
LIBCLANG_PATH = "${libclang.lib}/lib";
ROCKSDB_LIB_DIR = "${rocksdb}/lib";
PLAYWRIGHT_BROWSERS_PATH = "${playwright-driver.browsers}";
}