diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-11-07 20:51:39 +0100 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-11-07 20:51:39 +0100 |
| commit | 0e9f1e85cd8c6f9d546ef88e971043b909017170 (patch) | |
| tree | 5cb4d14df7594ef123f20d82cb2ec423b6bca744 /overlays/matrix-synapse/1.70.1/tools/rust-synapse-compress-state.nix | |
| parent | f563ddece04adfd8d80d4e984405f5c70a6c94f3 (diff) | |
| download | nixos-0e9f1e85cd8c6f9d546ef88e971043b909017170.tar nixos-0e9f1e85cd8c6f9d546ef88e971043b909017170.tar.gz nixos-0e9f1e85cd8c6f9d546ef88e971043b909017170.tar.bz2 nixos-0e9f1e85cd8c6f9d546ef88e971043b909017170.tar.xz nixos-0e9f1e85cd8c6f9d546ef88e971043b909017170.zip | |
...
Diffstat (limited to 'overlays/matrix-synapse/1.70.1/tools/rust-synapse-compress-state.nix')
| -rw-r--r-- | overlays/matrix-synapse/1.70.1/tools/rust-synapse-compress-state.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/overlays/matrix-synapse/1.70.1/tools/rust-synapse-compress-state.nix b/overlays/matrix-synapse/1.70.1/tools/rust-synapse-compress-state.nix new file mode 100644 index 00000000..fcf123d6 --- /dev/null +++ b/overlays/matrix-synapse/1.70.1/tools/rust-synapse-compress-state.nix | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | { lib, rustPlatform, python3, fetchFromGitHub, pkg-config, openssl }: | ||
| 2 | |||
| 3 | rustPlatform.buildRustPackage rec { | ||
| 4 | pname = "rust-synapse-compress-state"; | ||
| 5 | version = "0.1.3"; | ||
| 6 | |||
| 7 | src = fetchFromGitHub { | ||
| 8 | owner = "matrix-org"; | ||
| 9 | repo = pname; | ||
| 10 | rev = "v${version}"; | ||
| 11 | sha256 = "sha256-SSfVtG8kwHarVbB1O7xC2SSbUpPGYMHTMyoxu8mpEk0="; | ||
| 12 | }; | ||
| 13 | |||
| 14 | cargoSha256 = "sha256-PG+UeovhJMsIlm5dOYdtMxbUxZjwG3V59kAcB9aFP5c="; | ||
| 15 | |||
| 16 | cargoBuildFlags = [ | ||
| 17 | "--all" | ||
| 18 | ]; | ||
| 19 | |||
| 20 | nativeBuildInputs = [ python3 pkg-config ]; | ||
| 21 | |||
| 22 | buildInputs = [ openssl ]; | ||
| 23 | |||
| 24 | meta = with lib; { | ||
| 25 | description = "A tool to compress some state in a Synapse instance's database"; | ||
| 26 | homepage = "https://github.com/matrix-org/rust-synapse-compress-state"; | ||
| 27 | license = licenses.asl20; | ||
| 28 | maintainers = with maintainers; [ hexa maralorn ]; | ||
| 29 | }; | ||
| 30 | } | ||
