5 , matrix-sdk-crypto-nodejs
15 src = fetchFromGitHub {
18 rev = "refs/tags/v${version}";
19 hash = "sha256-xejFKz2MmdjMFU0X0SdI+qXTBRAwIvkcfZPQqXB9LV0=";
22 packageJSON = ./package.json;
24 offlineCache = fetchYarnDeps {
25 yarnLock = src + "/yarn.lock";
26 hash = "sha256-RpvdyxJj92k4wFjBBmWCnEpFVOXVWlHEm0SmEBUlnTM=";
29 packageResolutions = {
30 "@matrix-org/matrix-sdk-crypto-nodejs" = "${matrix-sdk-crypto-nodejs}/lib/node_modules/@matrix-org/matrix-sdk-crypto-nodejs";
33 nativeBuildInputs = [ makeWrapper ];
46 makeWrapper ${nodejs}/bin/node "$out/bin/mjolnir" \
47 --add-flags "$out/libexec/mjolnir/deps/mjolnir/lib/index.js"
52 inherit (nixosTests) mjolnir;
57 description = "A moderation tool for Matrix";
58 homepage = "https://github.com/matrix-org/mjolnir";
60 As an all-in-one moderation tool, it can protect your server from
61 malicious invites, spam messages, and whatever else you don't want.
62 In addition to server-level protection, Mjolnir is great for communities
63 wanting to protect their rooms without having to use their personal
64 accounts for moderation.
66 The bot by default includes support for bans, redactions, anti-spam,
67 server ACLs, room directory changes, room alias transfers, account
68 deactivation, room shutdown, and more.
70 A Synapse module is also available to apply the same rulesets the bot
71 uses across an entire homeserver.
73 license = licenses.asl20;
74 maintainers = with maintainers; [ jojosch ];
75 mainProgram = "mjolnir";