diff --git a/pkgs/servers/matrix-conduit/default.nix b/pkgs/servers/matrix-conduit/default.nix new file mode 100644 index 00000000000..2866335e120 --- /dev/null +++ b/pkgs/servers/matrix-conduit/default.nix @@ -0,0 +1,24 @@ +{ stdenv, lib, fetchFromGitLab, rustPlatform, }: + +rustPlatform.buildRustPackage rec { + pname = "matrix-conduit"; + version = "0.2.0"; + + src = fetchFromGitLab { + owner = "famedly"; + repo = "conduit"; + rev = "v${version}"; + sha256 = "0k3313bnv399v738j1xja9hngsmi39r3vzvgwssl5c24yvkvskdr"; + }; + + cargoSha256 = "0379dvc8m8clc9lrxd1x0aciqvcgv3hjq7xfspz3bh8aq2a43pcs"; + + meta = with lib; { + description = "A Matrix homeserver written in Rust"; + homepage = "https://conduit.rs/"; + license = licenses.asl20; + maintainers = with maintainers; [ pstn piegames ]; + }; +} + + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4e7b4a91375..d54fe9af9f4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6844,6 +6844,8 @@ with pkgs; mathpix-snipping-tool = callPackage ../tools/misc/mathpix-snipping-tool { }; + matrix-conduit = callPackage ../servers/matrix-conduit { }; + /* Python 3.8 is currently broken with matrix-synapse since `python38Packages.bleach` fails (https://github.com/NixOS/nixpkgs/issues/76093) */ matrix-synapse = callPackage ../servers/matrix-synapse { /*python3 = python38;*/ };