ca5ab3a501
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
34 lines
798 B
Nix
34 lines
798 B
Nix
{ stdenv, lib, fetchFromGitLab, rustPlatform, pkgs }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "matrix-conduit";
|
|
version = "0.4.0";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "famedly";
|
|
repo = "conduit";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-QTXDIvGz12ZxsWmPiMiJ8mBUWoJ2wnaeTZdXcwBh35o=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-vE44I8lQ5VAfZB4WKLRv/xudoZJaFJGTT/UuumTePBU=";
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
rustPlatform.bindgenHook
|
|
];
|
|
|
|
buildInputs = with pkgs; [
|
|
pkg-config
|
|
rocksdb
|
|
];
|
|
|
|
cargoBuildFlags = "--bin conduit";
|
|
|
|
meta = with lib; {
|
|
broken = stdenv.isDarwin;
|
|
description = "A Matrix homeserver written in Rust";
|
|
homepage = "https://conduit.rs/";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ pstn piegames pimeys ];
|
|
};
|
|
}
|