rust-synapse-compress-state: init at 0.1.0

"A tool to compress some state in a Synapse instance's database"
This commit is contained in:
Malte Brandy 2020-12-08 04:10:09 +01:00
parent e9a431d343
commit 9329daa507
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9
4 changed files with 31 additions and 0 deletions

View file

@ -1,12 +1,14 @@
{ lib, stdenv, python3, openssl
, enableSystemd ? stdenv.isLinux, nixosTests
, enableRedis ? false
, callPackage
}:
with python3.pkgs;
let
plugins = python3.pkgs.callPackage ./plugins { };
tools = callPackage ./tools { };
in
buildPythonApplication rec {
pname = "matrix-synapse";
@ -68,6 +70,7 @@ buildPythonApplication rec {
passthru.tests = { inherit (nixosTests) matrix-synapse; };
passthru.plugins = plugins;
passthru.tools = tools;
passthru.python = python3;
meta = with stdenv.lib; {

View file

@ -0,0 +1,4 @@
{ callPackage }:
{
rust-synapse-compress-state = callPackage ./rust-synapse-compress-state.nix { };
}

View file

@ -0,0 +1,22 @@
{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "rust-synapse-compress-state";
version = "0.1.0";
src = fetchFromGitHub {
owner = "matrix-org";
repo = pname;
rev = "v${version}";
sha256 = "15jvkpbq6pgdc91wnni8fj435yqlwqgx3bb0vqjgsdyxs5lzalfh";
};
cargoSha256 = "1zdf091s0wyribsqp8l6arkablchqxmdyg2xdc57hh06p4fjiw48";
meta = with lib; {
description = "A tool to compress some state in a Synapse instance's database";
homepage = "https://github.com/matrix-org/rust-synapse-compress-state";
license = licenses.asl20;
maintainers = with maintainers; [ hexa maralorn ];
};
}

View file

@ -5222,6 +5222,8 @@ in
matrix-synapse-plugins = recurseIntoAttrs matrix-synapse.plugins;
matrix-synapse-tools = recurseIntoAttrs matrix-synapse.tools;
matrix-appservice-slack = callPackage ../servers/matrix-synapse/matrix-appservice-slack {};
matrix-appservice-discord = callPackage ../servers/matrix-appservice-discord { };