2022-10-21 18:38:19 +00:00
|
|
|
{ stdenv, lib, fetchFromGitLab, rustPlatform, pkg-config, rocksdb }:
|
2022-01-03 16:56:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "matrix-conduit";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "0.4.0";
|
2022-01-03 16:56:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "famedly";
|
|
|
|
repo = "conduit";
|
|
|
|
rev = "v${version}";
|
2022-07-14 12:49:19 +00:00
|
|
|
sha256 = "sha256-QTXDIvGz12ZxsWmPiMiJ8mBUWoJ2wnaeTZdXcwBh35o=";
|
2022-01-03 16:56:52 +00:00
|
|
|
};
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
cargoSha256 = "sha256-vE44I8lQ5VAfZB4WKLRv/xudoZJaFJGTT/UuumTePBU=";
|
2022-02-10 20:34:41 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
nativeBuildInputs = [
|
2022-03-05 16:20:37 +00:00
|
|
|
rustPlatform.bindgenHook
|
2022-10-21 18:38:19 +00:00
|
|
|
pkg-config
|
2022-02-10 20:34:41 +00:00
|
|
|
];
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
buildInputs = [
|
2022-02-10 20:34:41 +00:00
|
|
|
rocksdb
|
|
|
|
];
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
cargoBuildFlags = [ "--bin" "conduit" ];
|
2022-01-03 16:56:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2022-01-03 16:56:52 +00:00
|
|
|
description = "A Matrix homeserver written in Rust";
|
|
|
|
homepage = "https://conduit.rs/";
|
|
|
|
license = licenses.asl20;
|
2022-02-10 20:34:41 +00:00
|
|
|
maintainers = with maintainers; [ pstn piegames pimeys ];
|
2022-01-03 16:56:52 +00:00
|
|
|
};
|
|
|
|
}
|