2022-02-04 21:04:21 +01:00
|
|
|
{ stdenv, lib, fetchFromGitLab, rustPlatform, pkgs }:
|
2021-09-02 11:23:48 +02:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "matrix-conduit";
|
2022-02-04 21:04:21 +01:00
|
|
|
version = "0.3.0";
|
2021-09-02 11:23:48 +02:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "famedly";
|
|
|
|
repo = "conduit";
|
|
|
|
rev = "v${version}";
|
2022-02-04 21:04:21 +01:00
|
|
|
sha256 = "sha256-jCBvenwXPgYms5Tbu16q/F8UNpvaw0Shao9kLEZLbHM=";
|
2021-09-02 11:23:48 +02:00
|
|
|
};
|
|
|
|
|
2022-02-04 21:04:21 +01:00
|
|
|
cargoSha256 = "sha256-fpjzc2HiWP6nV8YZOwxsIOhy4ht/tQqcvCkcLMIFUaQ=";
|
|
|
|
|
|
|
|
nativeBuildInputs = with pkgs; [
|
2022-02-13 13:00:00 +01:00
|
|
|
rustPlatform.bindgenHook
|
2022-02-04 21:04:21 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
pkg-config
|
|
|
|
rocksdb
|
|
|
|
];
|
|
|
|
|
|
|
|
cargoBuildFlags = "--bin conduit";
|
2021-09-02 11:23:48 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Matrix homeserver written in Rust";
|
|
|
|
homepage = "https://conduit.rs/";
|
|
|
|
license = licenses.asl20;
|
2022-02-04 18:32:20 +01:00
|
|
|
maintainers = with maintainers; [ pstn piegames pimeys ];
|
2021-09-02 11:23:48 +02:00
|
|
|
};
|
|
|
|
}
|