forked from airalab/robonomics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
37 lines (32 loc) · 924 Bytes
/
default.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
{ rustPlatform
, llvmPackages
, pkg-config
, protobuf
, rocksdb
, libudev
, clang
, cmake
, rust
, lib
}:
rustPlatform.buildRustPackage {
name = "robonomics";
src = builtins.path { path = ./.; name = "robonomics-src"; };
cargoSha256 = null;
nativeBuildInputs = [ clang ];
buildInputs = [ rust ];
# NOTE: We don't build the WASM runtimes since this would require a more
# complicated rust environment setup. The resulting binary is still useful for
# live networks since those just use the WASM blob from the network chainspec.
BUILD_DUMMY_WASM_BINARY = 1;
ROCKSDB_LIB_DIR = "${rocksdb}/lib";
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
PROTOC = "${protobuf}/bin/protoc";
meta = with lib; {
description = "Robonomics Node";
homepage = "https://robonomics.network";
license = licenses.asl20;
maintainers = with maintainers; [ akru ];
platforms = platforms.linux;
};
}