2022-11-19 13:12:40 +00:00
|
|
|
{ lib, stdenv, rustPlatform, python3, fetchFromGitHub, pkg-config, openssl }:
|
2020-12-08 03:10:09 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "rust-synapse-compress-state";
|
2022-08-01 12:16:22 +00:00
|
|
|
version = "0.1.3";
|
2020-12-08 03:10:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "matrix-org";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-08-01 12:16:22 +00:00
|
|
|
sha256 = "sha256-SSfVtG8kwHarVbB1O7xC2SSbUpPGYMHTMyoxu8mpEk0=";
|
2020-12-08 03:10:09 +00:00
|
|
|
};
|
|
|
|
|
2022-08-01 12:16:22 +00:00
|
|
|
cargoSha256 = "sha256-PG+UeovhJMsIlm5dOYdtMxbUxZjwG3V59kAcB9aFP5c=";
|
2021-12-14 19:08:20 +00:00
|
|
|
|
|
|
|
cargoBuildFlags = [
|
|
|
|
"--all"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ python3 pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ openssl ];
|
2020-12-08 03:10:09 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-11-19 13:12:40 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2020-12-08 03:10:09 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|