blob: 0df697b8df9d961445c6e353efc697da4b4b79a5 (
plain) (
blame)
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
|
{ stdenv
, fetchFromGitHub
, lib
, rustPlatform
, rustfmt
, protobuf
}:
let
src = fetchFromGitHub {
owner = "indradb";
repo = "indradb";
rev = "06134dde5bb53eb1d2aaa52afdaf9ff3bf1aa674";
sha256 = "sha256-g4Jam7yxMc+piYQzgMvVsNTF+ce1U3thzYl/M9rKG4o=";
};
meta = with lib; {
description = "Graph database written in rust ";
homepage = "https://github.com/indradb/indradb";
license = licenses.mpl20;
maintainers = with maintainers; [ happysalada ];
platforms = platforms.unix;
};
in
{
indradb-server = rustPlatform.buildRustPackage {
pname = "indradb-server";
version = "unstable-2021-01-05";
inherit src meta;
cargoSha256 = "sha256-3WtiW31AkyNX7HiT/zqfNo2VSKR7Q57/wCigST066Js=";
buildAndTestSubdir = "server";
PROTOC = "${protobuf}/bin/protoc";
nativeBuildInputs = [ rustfmt rustPlatform.bindgenHook ];
# test rely on libindradb and it can't be found
# failure at https://github.com/indradb/indradb/blob/master/server/tests/plugins.rs#L63
# `let _server = Server::start(&format!("../target/debug/libindradb_plugin_*.{}", LIBRARY_EXTENSION)).unwrap();`
doCheck = false;
};
indradb-client = rustPlatform.buildRustPackage {
pname = "indradb-client";
version = "unstable-2021-01-05";
inherit src meta;
cargoSha256 = "sha256-pxan6W/CEsOxv8DbbytEBuIqxWn/C4qT4ze/RnvESOM=";
PROTOC = "${protobuf}/bin/protoc";
nativeBuildInputs = [ rustfmt rustPlatform.bindgenHook ];
buildAndTestSubdir = "client";
};
}
|