2022-02-04 20:04:21 +00:00
|
|
|
{ stdenv, lib, fetchFromGitLab, rustPlatform, pkgs }:
|
2021-09-02 09:23:48 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "matrix-conduit";
|
2022-07-01 14:54:09 +00:00
|
|
|
version = "0.4.0";
|
2021-09-02 09:23:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "famedly";
|
|
|
|
repo = "conduit";
|
|
|
|
rev = "v${version}";
|
2022-07-01 14:54:09 +00:00
|
|
|
sha256 = "sha256-QTXDIvGz12ZxsWmPiMiJ8mBUWoJ2wnaeTZdXcwBh35o=";
|
2021-09-02 09:23:48 +00:00
|
|
|
};
|
|
|
|
|
2022-07-01 14:54:09 +00:00
|
|
|
cargoSha256 = "sha256-vE44I8lQ5VAfZB4WKLRv/xudoZJaFJGTT/UuumTePBU=";
|
2022-02-04 20:04:21 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = with pkgs; [
|
2022-02-13 12:00:00 +00:00
|
|
|
rustPlatform.bindgenHook
|
2022-09-25 02:49:25 +00:00
|
|
|
pkg-config
|
2022-02-04 20:04:21 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
rocksdb
|
|
|
|
];
|
|
|
|
|
|
|
|
cargoBuildFlags = "--bin conduit";
|
2021-09-02 09:23:48 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-05-29 08:31:53 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2021-09-02 09:23:48 +00: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 09:23:48 +00:00
|
|
|
};
|
|
|
|
}
|