diff --git a/pkgs/servers/matrix-conduit/default.nix b/pkgs/servers/matrix-conduit/default.nix new file mode 100644 index 000000000000..1e69fcd7778d --- /dev/null +++ b/pkgs/servers/matrix-conduit/default.nix @@ -0,0 +1,22 @@ +{ 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 c64fa5fe5757..a80e812f6b7d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7099,6 +7099,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;*/ };