mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
34 lines
768 B
Nix
34 lines
768 B
Nix
{ stdenv, lib, fetchFromGitLab, rustPlatform, pkgs }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "matrix-conduit";
|
|
version = "0.3.0";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "famedly";
|
|
repo = "conduit";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-jCBvenwXPgYms5Tbu16q/F8UNpvaw0Shao9kLEZLbHM=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-fpjzc2HiWP6nV8YZOwxsIOhy4ht/tQqcvCkcLMIFUaQ=";
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
rustPlatform.bindgenHook
|
|
];
|
|
|
|
buildInputs = with pkgs; [
|
|
pkg-config
|
|
rocksdb
|
|
];
|
|
|
|
cargoBuildFlags = "--bin conduit";
|
|
|
|
meta = with lib; {
|
|
description = "A Matrix homeserver written in Rust";
|
|
homepage = "https://conduit.rs/";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ pstn piegames pimeys ];
|
|
};
|
|
}
|