diff --git a/pkgs/applications/networking/mailreaders/mailnag/default.nix b/pkgs/applications/networking/mailreaders/mailnag/default.nix index 4766939a4244..b44d90f1d760 100644 --- a/pkgs/applications/networking/mailreaders/mailnag/default.nix +++ b/pkgs/applications/networking/mailreaders/mailnag/default.nix @@ -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 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 394b72380d93..81dda13560da 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };