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