Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
64 lines
1.5 KiB
Nix
64 lines
1.5 KiB
Nix
{
|
|
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;
|
|
|
|
cargoHash = "sha256-wehQU0EOSkxQatoViqBJwgu4LG7NsbKjVZvKE6SoOFs=";
|
|
|
|
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;
|
|
|
|
cargoHash = "sha256-wehQU0EOSkxQatoViqBJwgu4LG7NsbKjVZvKE6SoOFs=";
|
|
|
|
PROTOC = "${protobuf}/bin/protoc";
|
|
|
|
nativeBuildInputs = [
|
|
rustfmt
|
|
rustPlatform.bindgenHook
|
|
];
|
|
|
|
buildAndTestSubdir = "client";
|
|
};
|
|
}
|