Add lottieconverter to discord bridge

Signed-off-by: magic_rb <richard@brezak.sk>
This commit is contained in:
magic_rb 2023-10-27 17:37:57 +02:00
parent 8f98538aa9
commit dcace988fc
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -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