diff options
author | Malte Brandy <malte.brandy@maralorn.de> | 2020-12-08 04:10:09 +0100 |
---|---|---|
committer | Malte Brandy <malte.brandy@maralorn.de> | 2020-12-08 04:10:09 +0100 |
commit | 9329daa5079ba830789c348804dd43fa3a4a6fc9 (patch) | |
tree | b2b1898ed3905255aaace313cebd1fc8b4cdb109 /pkgs/servers | |
parent | e9a431d343846858a7f2223bd8a2ff2d46035e4f (diff) |
rust-synapse-compress-state: init at 0.1.0
"A tool to compress some state in a Synapse instance's database"
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/matrix-synapse/default.nix | 3 | ||||
-rw-r--r-- | pkgs/servers/matrix-synapse/tools/default.nix | 4 | ||||
-rw-r--r-- | pkgs/servers/matrix-synapse/tools/rust-synapse-compress-state.nix | 22 |
3 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/servers/matrix-synapse/default.nix b/pkgs/servers/matrix-synapse/default.nix index e6266268a9358..e93c72ea51b69 100644 --- a/pkgs/servers/matrix-synapse/default.nix +++ b/pkgs/servers/matrix-synapse/default.nix @@ -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; { diff --git a/pkgs/servers/matrix-synapse/tools/default.nix b/pkgs/servers/matrix-synapse/tools/default.nix new file mode 100644 index 0000000000000..43667f9e16de9 --- /dev/null +++ b/pkgs/servers/matrix-synapse/tools/default.nix @@ -0,0 +1,4 @@ +{ callPackage }: +{ + rust-synapse-compress-state = callPackage ./rust-synapse-compress-state.nix { }; +} diff --git a/pkgs/servers/matrix-synapse/tools/rust-synapse-compress-state.nix b/pkgs/servers/matrix-synapse/tools/rust-synapse-compress-state.nix new file mode 100644 index 0000000000000..f770da75fd0d5 --- /dev/null +++ b/pkgs/servers/matrix-synapse/tools/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 ]; + }; +} |