From dcace988fca2da65677e050e4a8dbb99398c942b Mon Sep 17 00:00:00 2001 From: magic_rb Date: Fri, 27 Oct 2023 17:37:57 +0200 Subject: [PATCH] Add lottieconverter to discord bridge Signed-off-by: magic_rb --- nixng/containers/matrix/mautrix-discord/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixng/containers/matrix/mautrix-discord/default.nix b/nixng/containers/matrix/mautrix-discord/default.nix index 4982236..7e9f854 100644 --- a/nixng/containers/matrix/mautrix-discord/default.nix +++ b/nixng/containers/matrix/mautrix-discord/default.nix @@ -18,7 +18,8 @@ script = let inherit (lib) - getExe'; + getExe' + makeBinPath; mautrix-discord = (pkgs.appendOverlays [ config.flake.overlays.mautrix-discord ]).mautrix-discord; in pkgs.writeShellScript "mautrix-discord" @@ -31,6 +32,8 @@ ${getExe' pkgs.envsubst "envsubst"} < ${./mautrix-discord.yaml} > "$CONFIG_FILE" chmod 755 "$CONFIG_FILE" + export PATH="$PATH:${makeBinPath [ pkgs.lottieconverter ]};" + [ -e "$REGISTRATION_FILE" ] || \ ${getExe' mautrix-discord "mautrix-discord"} -c "$CONFIG_FILE" -r "$REGISTRATION_FILE" -g ${getExe' mautrix-discord "mautrix-discord"} -c "$CONFIG_FILE" -r "$REGISTRATION_FILE" -n