From 5b3c59bf26ff8b9c38f3ca78451b42ad0014a585 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 7 Nov 2022 22:43:26 +0100 Subject: ... --- overlays/matrix-synapse/1.70.1/tools/default.nix | 6 --- .../1.70.1/tools/rust-synapse-compress-state.nix | 30 -------------- overlays/matrix-synapse/1.70.1/tools/synadm.nix | 47 ---------------------- 3 files changed, 83 deletions(-) delete mode 100644 overlays/matrix-synapse/1.70.1/tools/default.nix delete mode 100644 overlays/matrix-synapse/1.70.1/tools/rust-synapse-compress-state.nix delete mode 100644 overlays/matrix-synapse/1.70.1/tools/synadm.nix (limited to 'overlays/matrix-synapse/1.70.1/tools') diff --git a/overlays/matrix-synapse/1.70.1/tools/default.nix b/overlays/matrix-synapse/1.70.1/tools/default.nix deleted file mode 100644 index defc35bc..00000000 --- a/overlays/matrix-synapse/1.70.1/tools/default.nix +++ /dev/null @@ -1,6 +0,0 @@ -{ callPackage }: -{ - rust-synapse-compress-state = callPackage ./rust-synapse-compress-state.nix { }; - - synadm = callPackage ./synadm.nix { }; -} 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 deleted file mode 100644 index fcf123d6..00000000 --- a/overlays/matrix-synapse/1.70.1/tools/rust-synapse-compress-state.nix +++ /dev/null @@ -1,30 +0,0 @@ -{ lib, rustPlatform, python3, fetchFromGitHub, pkg-config, openssl }: - -rustPlatform.buildRustPackage rec { - pname = "rust-synapse-compress-state"; - version = "0.1.3"; - - src = fetchFromGitHub { - owner = "matrix-org"; - repo = pname; - rev = "v${version}"; - sha256 = "sha256-SSfVtG8kwHarVbB1O7xC2SSbUpPGYMHTMyoxu8mpEk0="; - }; - - cargoSha256 = "sha256-PG+UeovhJMsIlm5dOYdtMxbUxZjwG3V59kAcB9aFP5c="; - - cargoBuildFlags = [ - "--all" - ]; - - nativeBuildInputs = [ python3 pkg-config ]; - - buildInputs = [ openssl ]; - - 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 ]; - }; -} diff --git a/overlays/matrix-synapse/1.70.1/tools/synadm.nix b/overlays/matrix-synapse/1.70.1/tools/synadm.nix deleted file mode 100644 index 5075e42e..00000000 --- a/overlays/matrix-synapse/1.70.1/tools/synadm.nix +++ /dev/null @@ -1,47 +0,0 @@ -{ lib -, python3Packages -}: - -with python3Packages; buildPythonApplication rec { - pname = "synadm"; - version = "0.36"; - format = "setuptools"; - - src = fetchPypi { - inherit pname version; - sha256 = "sha256-OMXUbfAC927qJw0B5sq1lGJQRkFAUdohIOkCYUbZumI="; - }; - - postPatch = '' - substituteInPlace setup.py \ - --replace "Click>=7.0,<8.0" "Click" - ''; - - propagatedBuildInputs = [ - click - click-option-group - dnspython - tabulate - pyyaml - requests - ]; - - checkPhase = '' - runHook preCheck - export HOME=$TMPDIR - $out/bin/synadm -h > /dev/null - runHook postCheck - ''; - - meta = with lib; { - description = "Command line admin tool for Synapse"; - longDescription = '' - A CLI tool to help admins of Matrix Synapse homeservers - conveniently issue commands available via its admin API's - (matrix-org/synapse@master/docs/admin_api) - ''; - homepage = "https://github.com/JOJ0/synadm"; - license = licenses.gpl3Plus; - maintainers = with maintainers; [ hexa ]; - }; -} -- cgit v1.2.3