diff options
Diffstat (limited to 'pkgs/servers/matrix-synapse/tools')
-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 |
2 files changed, 26 insertions, 0 deletions
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 ]; + }; +} |