mailnag: Make it possible to override available plugins
This commit is contained in:
parent
7ff82bfee6
commit
ddb962bec4
@ -13,15 +13,13 @@
|
|||||||
, gsettings-desktop-schemas
|
, gsettings-desktop-schemas
|
||||||
, glib
|
, glib
|
||||||
, gobject-introspection
|
, gobject-introspection
|
||||||
|
# Available plugins (can be overriden)
|
||||||
|
, availablePlugins
|
||||||
# Plugins to install
|
# Plugins to install
|
||||||
, plugins ? [ "goa" ]
|
, plugins ? [ "goa" ]
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
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
|
# Get the list of plugins the user wants
|
||||||
userPlugins = lib.attrVals plugins availablePlugins;
|
userPlugins = lib.attrVals plugins availablePlugins;
|
||||||
# goa plugin requires gio's gnome-online-accounts which requires making sure
|
# goa plugin requires gio's gnome-online-accounts which requires making sure
|
||||||
|
@ -5206,7 +5206,13 @@ in
|
|||||||
|
|
||||||
mailhog = callPackage ../servers/mail/mailhog {};
|
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 { };
|
mailsend = callPackage ../tools/networking/mailsend { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user