mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 07:00:43 +00:00
mailnag: Make it possible to override available plugins
This commit is contained in:
parent
7ff82bfee6
commit
ddb962bec4
|
@ -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
|
||||
|
|
|
@ -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 { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue