mailnag: Make it possible to override available plugins

This commit is contained in:
Doron Behar 2020-08-15 00:21:32 +03:00 committed by Jon
parent 7ff82bfee6
commit ddb962bec4
2 changed files with 9 additions and 5 deletions

View File

@ -13,15 +13,13 @@
, gsettings-desktop-schemas
, glib
, gobject-introspection
# Available plugins (can be overriden)
, availablePlugins
# Plugins to install
, plugins ? [ "goa" ]
}:
let
availablePlugins = {
# More are listed here: https://github.com/pulb/mailnag/#desktop-integration
goa = callPackage ./goa-plugin.nix { };
};
# Get the list of plugins the user wants
userPlugins = lib.attrVals plugins availablePlugins;
# goa plugin requires gio's gnome-online-accounts which requires making sure

View File

@ -5206,7 +5206,13 @@ in
mailhog = callPackage ../servers/mail/mailhog {};
mailnag = callPackage ../applications/networking/mailreaders/mailnag { };
mailnag = callPackage ../applications/networking/mailreaders/mailnag {
availablePlugins = {
# More are listed here: https://github.com/pulb/mailnag/#desktop-integration
# Use the attributes here as arguments to `plugins` list
goa = callPackage ../applications/networking/mailreaders/mailnag/goa-plugin.nix { };
};
};
mailsend = callPackage ../tools/networking/mailsend { };