2022-10-09 14:14:54 +01:00
|
|
|
{ stdenv, lib, fetchFromGitLab, rustPlatform, pkg-config, rocksdb }:
|
2021-09-02 10:23:48 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "matrix-conduit";
|
2022-07-01 15:54:09 +01:00
|
|
|
version = "0.4.0";
|
2021-09-02 10:23:48 +01:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "famedly";
|
|
|
|
repo = "conduit";
|
|
|
|
rev = "v${version}";
|
2022-07-01 15:54:09 +01:00
|
|
|
sha256 = "sha256-QTXDIvGz12ZxsWmPiMiJ8mBUWoJ2wnaeTZdXcwBh35o=";
|
2021-09-02 10:23:48 +01:00
|
|
|
};
|
|
|
|
|
2022-07-01 15:54:09 +01:00
|
|
|
cargoSha256 = "sha256-vE44I8lQ5VAfZB4WKLRv/xudoZJaFJGTT/UuumTePBU=";
|
2022-02-04 20:04:21 +00:00
|
|
|
|
2022-10-09 14:14:54 +01:00
|
|
|
nativeBuildInputs = [
|
2022-02-13 12:00:00 +00:00
|
|
|
rustPlatform.bindgenHook
|
2022-09-25 03:49:25 +01:00
|
|
|
pkg-config
|
2022-02-04 20:04:21 +00:00
|
|
|
];
|
|
|
|
|
2022-10-09 14:14:54 +01:00
|
|
|
buildInputs = [
|
2022-02-04 20:04:21 +00:00
|
|
|
rocksdb
|
|
|
|
];
|
|
|
|
|
2022-10-03 14:56:51 +01:00
|
|
|
cargoBuildFlags = [ "--bin" "conduit" ];
|
2021-09-02 10:23:48 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-05-29 09:31:53 +01:00
|
|
|
broken = stdenv.isDarwin;
|
2021-09-02 10:23:48 +01:00
|
|
|
description = "A Matrix homeserver written in Rust";
|
|
|
|
homepage = "https://conduit.rs/";
|
|
|
|
license = licenses.asl20;
|
2022-02-04 17:32:20 +00:00
|
|
|
maintainers = with maintainers; [ pstn piegames pimeys ];
|
2021-09-02 10:23:48 +01:00
|
|
|
};
|
|
|
|
}
|