From 906f07fe6c831c404629b9315f120906afc4449e Mon Sep 17 00:00:00 2001 From: Magic_RB Date: Sat, 13 May 2023 22:09:22 +0200 Subject: [PATCH] Enable sqlite in mautrix-facebook Signed-off-by: Magic_RB --- containers/mautrix-facebook.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/containers/mautrix-facebook.nix b/containers/mautrix-facebook.nix index dff302d..f2e92a4 100644 --- a/containers/mautrix-facebook.nix +++ b/containers/mautrix-facebook.nix @@ -16,6 +16,11 @@ nglib.makeSystem { script = let config = ./mautrix-facebook.yaml; + mautrix-facebook = pkgs.mautrix-facebook.overridePythonAttrs (old: { + propagatedBuildInputs = with pkgs.python3.pkgs; [ + aiosqlite + ] ++ old.propagatedBuildInputs; + }); in pkgs.writeShellScript "mautrix-facebook" '' @@ -28,8 +33,8 @@ nglib.makeSystem { ${pkgs.sqlite}/bin/sqlite3 $DB_FILE '.databases ; .quit' [ -e "$REGISTRATION_FILE" ] || \ - ${pkgs.mautrix-facebook}/bin/mautrix-facebook -c "$CONFIG_FILE" -r "$REGISTRATION_FILE" -g - ${pkgs.mautrix-facebook}/bin/mautrix-facebook -c "$CONFIG_FILE" -r "$REGISTRATION_FILE" -n + ${mautrix-facebook}/bin/mautrix-facebook -c "$CONFIG_FILE" -r "$REGISTRATION_FILE" -g + ${mautrix-facebook}/bin/mautrix-facebook -c "$CONFIG_FILE" -r "$REGISTRATION_FILE" -n ''; }; });