mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-12-07 07:24:47 +01:00
Enable sqlite in mautrix-facebook
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
2fb0d1066b
commit
906f07fe6c
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
'';
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue