nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 fetchFromGitHub,
4 lib,
5 rustPlatform,
6 rustfmt,
7 protobuf,
8}:
9let
10 src = fetchFromGitHub {
11 owner = "indradb";
12 repo = "indradb";
13 rev = "06134dde5bb53eb1d2aaa52afdaf9ff3bf1aa674";
14 sha256 = "sha256-g4Jam7yxMc+piYQzgMvVsNTF+ce1U3thzYl/M9rKG4o=";
15 };
16
17 meta = {
18 # Marked broken 2025-11-28 because both indradb-server and indradb-client
19 # have failed on Hydra for nearly a year.
20 broken = true;
21 description = "Graph database written in rust";
22 homepage = "https://github.com/indradb/indradb";
23 license = lib.licenses.mpl20;
24 maintainers = with lib.maintainers; [ happysalada ];
25 platforms = lib.platforms.unix;
26 };
27in
28{
29 indradb-server = rustPlatform.buildRustPackage {
30 pname = "indradb-server";
31 version = "unstable-2021-01-05";
32 inherit src meta;
33
34 cargoHash = "sha256-wehQU0EOSkxQatoViqBJwgu4LG7NsbKjVZvKE6SoOFs=";
35
36 buildAndTestSubdir = "server";
37
38 PROTOC = "${protobuf}/bin/protoc";
39
40 nativeBuildInputs = [
41 rustfmt
42 rustPlatform.bindgenHook
43 ];
44
45 # test rely on libindradb and it can't be found
46 # failure at https://github.com/indradb/indradb/blob/master/server/tests/plugins.rs#L63
47 # `let _server = Server::start(&format!("../target/debug/libindradb_plugin_*.{}", LIBRARY_EXTENSION)).unwrap();`
48 doCheck = false;
49 };
50 indradb-client = rustPlatform.buildRustPackage {
51 pname = "indradb-client";
52 version = "unstable-2021-01-05";
53 inherit src meta;
54
55 cargoHash = "sha256-wehQU0EOSkxQatoViqBJwgu4LG7NsbKjVZvKE6SoOFs=";
56
57 PROTOC = "${protobuf}/bin/protoc";
58
59 nativeBuildInputs = [
60 rustfmt
61 rustPlatform.bindgenHook
62 ];
63
64 buildAndTestSubdir = "client";
65 };
66}