From e271bd71e9789ef2ea1a94d437502bc68403a0ce Mon Sep 17 00:00:00 2001 From: ckie Date: Tue, 19 Mar 2024 21:30:57 +0200 Subject: [PATCH] matrix-hookshot: avoid runtime dependency on rustc Nix previously would see a reference to rustc's store path in .rustc_info.json and proceed to register it as a runtime dependecy. Delete it so it doesn't. --- pkgs/servers/matrix-synapse/matrix-hookshot/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/servers/matrix-synapse/matrix-hookshot/default.nix b/pkgs/servers/matrix-synapse/matrix-hookshot/default.nix index f784036075c8..f8bdd9d6e9b8 100644 --- a/pkgs/servers/matrix-synapse/matrix-hookshot/default.nix +++ b/pkgs/servers/matrix-synapse/matrix-hookshot/default.nix @@ -72,6 +72,11 @@ mkYarnPackage rec { "$out/libexec/matrix-hookshot/deps/matrix-hookshot/lib/App/BridgeApp.js" ''; + postFixup = '' + # Scrub reference to rustc + rm $out/libexec/matrix-hookshot/deps/matrix-hookshot/target/.rustc_info.json + ''; + doDist = false; meta = with lib; {