servo: patch matrix-appservice-discord to allow 100% puppeting
This commit is contained in:
parent
0648825765
commit
6c38500e52
13
pkgs/matrix-appservice-discord/01-puppet.patch
Normal file
13
pkgs/matrix-appservice-discord/01-puppet.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/src/clientfactory.ts b/src/clientfactory.ts
|
||||||
|
index b7fea47..587acfd 100644
|
||||||
|
--- a/src/clientfactory.ts
|
||||||
|
+++ b/src/clientfactory.ts
|
||||||
|
@@ -53,7 +53,7 @@ export class DiscordClientFactory {
|
||||||
|
});
|
||||||
|
|
||||||
|
try {
|
||||||
|
- await this.botClient.login(this.config.botToken, true);
|
||||||
|
+ await this.botClient.login(this.config.botToken, false);
|
||||||
|
log.info("Waiting for shardReady signal");
|
||||||
|
await waitPromise;
|
||||||
|
log.info("Got shardReady signal");
|
11
pkgs/matrix-appservice-discord/default.nix
Normal file
11
pkgs/matrix-appservice-discord/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{ pkgs }:
|
||||||
|
|
||||||
|
(pkgs.matrix-appservice-discord.overrideAttrs (upstream: {
|
||||||
|
# 2022-10-05: the service can't login as an ordinary user unless i change the source
|
||||||
|
doCheck = false;
|
||||||
|
patches = (upstream.patches or []) ++ [
|
||||||
|
# bind to an IP address which is usable behind a netns
|
||||||
|
./01-puppet.patch
|
||||||
|
];
|
||||||
|
}))
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
pleroma = prev.callPackage ./pleroma { };
|
pleroma = prev.callPackage ./pleroma { };
|
||||||
# jackett doesn't allow customization of the bind address: this will probably always be here.
|
# jackett doesn't allow customization of the bind address: this will probably always be here.
|
||||||
jackett = prev.callPackage ./jackett { pkgs = prev; };
|
jackett = prev.callPackage ./jackett { pkgs = prev; };
|
||||||
|
matrix-appservice-discord = prev.callPackage ./matrix-appservice-discord { pkgs = prev; };
|
||||||
# mozilla keeps nerfing itself and removing configuration options
|
# mozilla keeps nerfing itself and removing configuration options
|
||||||
firefox-unwrapped = prev.callPackage ./firefox-unwrapped { pkgs = prev; };
|
firefox-unwrapped = prev.callPackage ./firefox-unwrapped { pkgs = prev; };
|
||||||
# fix abrupt HDD poweroffs as during reboot. patching systemd requires rebuilding nearly every package.
|
# fix abrupt HDD poweroffs as during reboot. patching systemd requires rebuilding nearly every package.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user