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:
parent
e9a431d343
commit
9329daa507
@ -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; {
|
||||
|
4
pkgs/servers/matrix-synapse/tools/default.nix
Normal file
4
pkgs/servers/matrix-synapse/tools/default.nix
Normal file
@ -0,0 +1,4 @@
|
||||
{ callPackage }:
|
||||
{
|
||||
rust-synapse-compress-state = callPackage ./rust-synapse-compress-state.nix { };
|
||||
}
|
@ -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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user