-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
draupnir: init at 2.0.0 #274052
base: master
Are you sure you want to change the base?
draupnir: init at 2.0.0 #274052
Conversation
Result of 2 packages blacklisted:
1 package built:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see a lot of potential to improve the module and to bring it in line with today's standards.
I can see that it is a copy of the mjolnir module, but I'm not willing to accept a new module of similar quality, because it is hard to maintain.
This is especially relevant with RFC42 (settings & formatters) in mind
Time for the almighty rebase on nixos:master... Please don't close the PR again... |
28ee30d
to
a0c9de0
Compare
🎊 It didn't close as merged! |
a0c9de0
to
cd3ce15
Compare
(Renamed the package init commit) |
cd3ce15
to
38a2e8f
Compare
(^ master rebase) |
eb031b1
to
0e12515
Compare
(^ squashed in order to rebase) |
3d0ec28
to
3667c8c
Compare
Darwin build fails, please mark as broken or fix:
(unfortunately the useful part of the log is gone) |
After adding |
3667c8c
to
6470078
Compare
CI says
Check nixos/doc/manual/redirects.json |
@FliegendeWurst uncertain what redirects are or why I need them? There's nothing to redirect from? |
I think you just need to add "module-services-draupnir": [
"index.html#module-services-draupnir"
] for each of the IDs listed above. The "redirect" doesn't do much here but it will be useful if the module ever gets removed or renamed, or the manual finally gets split into multiple pages. |
7ddebc8
to
79d48f0
Compare
b80cc91
to
0f32e58
Compare
Co-authored-by: teutat3s <[email protected]>
0f32e58
to
2fbc40b
Compare
mkdir -p $out/share | ||
cp -a . $out/share/draupnir | ||
|
||
makeWrapper ${nodejs}/bin/node $out/bin/draupnir \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makeWrapper ${nodejs}/bin/node $out/bin/draupnir \ | |
makeWrapper ${lib.getExe nodejs} $out/bin/draupnir \ |
}; | ||
|
||
meta = with lib; { | ||
description = "A moderation tool for Matrix"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description = "A moderation tool for Matrix"; | |
description = "Automated moderation tool for Matrix"; |
# build native sqlite bindings | ||
npm run build-release --offline --nodedir="${nodeSources}" | ||
find build -type f -exec \ | ||
${removeReferencesTo}/bin/remove-references-to \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
${removeReferencesTo}/bin/remove-references-to \ | |
${lib.getExe removeReferencesTo} \ |
if cfg.pantalaimon.enable then | ||
( | ||
with config.services.pantalaimon-headless.instances.draupnir; | ||
"http://${listenAddress}:${toString listenPort}/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does pantalaimon only listen on HTTP?
@@ -0,0 +1,86 @@ | |||
# Draupnir (Matrix Moderation Bot) {#module-services-draupnir} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to add an entry in redirects.json for each section with ID
- module-services-draupnir
- module-services-draupnir-setup
- module-services-draupnir-matrix-synapse-antispam
- module-services-draupnir-setup-ems
Description of changes
NOTE: This PR is a successor of #222939. The previous PR was closed by accident during a rebase operation.
Original description:
Draupnir is a hardfork of Mjolnir. Mjolnir package has been unmaintained due to upstream bugs. This package is mostly a drop-in replacement. This package also uses newer methods of handling dependencies.
Repository can be found at:
https://github.com/the-draupnir-project/Draupnir
Note on testing: package and module were (and still are) tested in our production environment, works fine as far as it's been used.
Note on replacing Mjolnir: Not sure whether this is appropriate, due to general usage of the bot changing. You can however fully automatically migrate from mjolnir to draupnir.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.