depot/third_party/nixpkgs/pkgs/servers/matrix-synapse/tools/rust-synapse-compress-state/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

39 lines
1,014 B
Nix

{ lib, stdenv, rustPlatform, python3, fetchFromGitHub, pkg-config, openssl }:
rustPlatform.buildRustPackage rec {
pname = "rust-synapse-compress-state";
version = "0.1.4";
src = fetchFromGitHub {
owner = "matrix-org";
repo = pname;
rev = "v${version}";
hash = "sha256-nNQ/d4FFAvI+UY+XeqExyhngq+k+j5Pkz94ch27aoVM=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"state-map-0.1.0" = "sha256-zToFCioijyT0vZ6c1uO+1ho+RODTe4OwbK2GhoKk+X4=";
};
};
cargoBuildFlags = [
"--all"
];
# Needed to get openssl-sys to use pkgconfig.
env.OPENSSL_NO_VENDOR = 1;
nativeBuildInputs = [ python3 pkg-config ];
buildInputs = [ openssl ];
meta = with lib; {
broken = stdenv.hostPlatform.isDarwin;
description = "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 ];
};
}