From a7a59fe459e4f1dfccfd300ed503a7d6baaf5d01 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Fri, 21 Oct 2022 14:28:09 +0800 Subject: [PATCH] matrix-synapse: remove setuptools_rust from runtime dependencies --- pkgs/servers/matrix-synapse/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/servers/matrix-synapse/default.nix b/pkgs/servers/matrix-synapse/default.nix index 140ee000b6d7..e96c3f18aa77 100644 --- a/pkgs/servers/matrix-synapse/default.nix +++ b/pkgs/servers/matrix-synapse/default.nix @@ -27,6 +27,12 @@ buildPythonApplication rec { hash = "sha256-RJq4mdPtnAR45rAycGDSSuvZwkJPOiqFBp+8mnBTKvU="; }; + postPatch = '' + # Remove setuptools_rust from runtime dependencies + # https://github.com/matrix-org/synapse/blob/v1.69.0/pyproject.toml#L177-L185 + sed -i '/^setuptools_rust =/d' pyproject.toml + ''; + nativeBuildInputs = [ poetry-core rustPlatform.cargoSetupHook