Merge pull request #106315 from maralorn/rscs

rust-synapse-compress-state: init at 0.1.0
This commit is contained in:
Martin Weinelt 2020-12-09 22:27:39 +01:00 committed by GitHub
commit 3d12bf304b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 31 additions and 0 deletions

View File

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

@ -5238,6 +5238,8 @@ in
matrix-synapse-plugins = recurseIntoAttrs matrix-synapse.plugins; 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-slack = callPackage ../servers/matrix-synapse/matrix-appservice-slack {};
matrix-appservice-discord = callPackage ../servers/matrix-appservice-discord { }; matrix-appservice-discord = callPackage ../servers/matrix-appservice-discord { };