mailnag: drop
Has been marked broken since 2022. Dropping per RFC 180.
This commit is contained in:
@@ -1,111 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
gettext,
|
||||
xorg, # for lndir
|
||||
gtk3,
|
||||
python3Packages,
|
||||
gdk-pixbuf,
|
||||
libnotify,
|
||||
gst_all_1,
|
||||
libsecret,
|
||||
wrapGAppsHook3,
|
||||
gsettings-desktop-schemas,
|
||||
glib,
|
||||
gobject-introspection,
|
||||
# Available plugins (can be overridden)
|
||||
availablePlugins,
|
||||
# Used in the withPlugins interface at passthru, can be overrided directly, or
|
||||
# preferably via e.g: `mailnag.withPlugins([mailnag.availablePlugins.goa])`
|
||||
mailnag,
|
||||
userPlugins ? [ ],
|
||||
pluginsDeps ? [ ],
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "mailnag";
|
||||
version = "2.2.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pulb";
|
||||
repo = "mailnag";
|
||||
rev = "v${version}";
|
||||
sha256 = "0m1cyzwzm7z4p2v31dx098a1iar7dbilwyjcxiqnjx05nlmiqvgf";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
gtk3
|
||||
gdk-pixbuf
|
||||
glib
|
||||
libnotify
|
||||
gst_all_1.gstreamer
|
||||
gst_all_1.gst-plugins-base
|
||||
gst_all_1.gst-plugins-good
|
||||
gst_all_1.gst-plugins-bad
|
||||
libsecret
|
||||
]
|
||||
++ pluginsDeps;
|
||||
|
||||
nativeBuildInputs = [
|
||||
gettext
|
||||
wrapGAppsHook3
|
||||
gobject-introspection
|
||||
# To later add plugins to
|
||||
xorg.lndir
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
gsettings-desktop-schemas
|
||||
pygobject3
|
||||
dbus-python
|
||||
pyxdg
|
||||
];
|
||||
|
||||
passthru = {
|
||||
inherit availablePlugins;
|
||||
withPlugins =
|
||||
plugs:
|
||||
let
|
||||
# goa plugin requires gio's gnome-online-accounts which requires making sure
|
||||
# mailnag runs with GI_TYPELIB_PATH containing the path to Goa-1.0.typelib.
|
||||
# This is handled best by adding the plugins' deps to buildInputs and let
|
||||
# wrapGAppsHook3 handle that.
|
||||
pluginsDeps = lib.flatten (lib.catAttrs "buildInputs" plugs);
|
||||
self = mailnag;
|
||||
in
|
||||
self.override {
|
||||
userPlugins = plugs;
|
||||
inherit pluginsDeps;
|
||||
};
|
||||
};
|
||||
|
||||
# See https://nixos.org/nixpkgs/manual/#ssec-gnome-common-issues-double-wrapped
|
||||
dontWrapGApps = true;
|
||||
|
||||
preFixup = ''
|
||||
substituteInPlace $out/${python3Packages.python.sitePackages}/Mailnag/common/dist_cfg.py \
|
||||
--replace "/usr/" $out/
|
||||
for desktop_file in $out/share/applications/*.desktop; do
|
||||
substituteInPlace "$desktop_file" \
|
||||
--replace "/usr/bin" $out/bin
|
||||
done
|
||||
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
||||
'';
|
||||
|
||||
# Actually install plugins
|
||||
postInstall = ''
|
||||
for plug in ${toString userPlugins}; do
|
||||
lndir $plug/${python3Packages.python.sitePackages} $out/${python3Packages.python.sitePackages}
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Extensible mail notification daemon";
|
||||
homepage = "https://github.com/pulb/mailnag";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ doronbehar ];
|
||||
broken = true; # at 2022-09-23
|
||||
};
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
python3Packages,
|
||||
gobject-introspection,
|
||||
gnome-online-accounts,
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonPackage rec {
|
||||
pname = "mailnag-goa-plugin";
|
||||
version = "2.0.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pulb";
|
||||
repo = "mailnag-goa-plugin";
|
||||
rev = "v${version}";
|
||||
sha256 = "0bij6cy96nhq7xzslx0fnhmiac629h0x4wgy67k4i4npwqw10680";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
gobject-introspection
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
gnome-online-accounts
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Mailnag GNOME Online Accounts plugin";
|
||||
homepage = "https://github.com/pulb/mailnag-goa-plugin";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ doronbehar ];
|
||||
};
|
||||
}
|
||||
@@ -1668,6 +1668,8 @@ mapAliases {
|
||||
mailcore2 = throw "'mailcore2' has been removed due to lack of upstream maintenance."; # Added 2025-06-09
|
||||
mailctl = throw "mailctl has been renamed to oama"; # Added 2024-08-19
|
||||
mailman-rss = throw "The mailman-rss package was dropped since it was unmaintained."; # Added 2024-06-21
|
||||
mailnag = throw "mailnag has been removed because it has been marked as broken since 2022."; # Added 2025-10-12
|
||||
mailnagWithPlugins = throw "mailnagWithPlugins has been removed because mailnag has been marked as broken since 2022."; # Added 2025-10-12
|
||||
melmatcheq.lv2 = melmatcheq-lv2; # Added 2025-09-27
|
||||
mariadb_105 = throw "'mariadb_105' has been removed because it reached its End of Life. Consider upgrading to 'mariadb_106'."; # Added 2025-04-26
|
||||
mariadb_110 = throw "mariadb_110 has been removed from nixpkgs, please switch to another version like mariadb_114"; # Added 2024-08-15
|
||||
|
||||
@@ -3435,15 +3435,6 @@ with pkgs;
|
||||
|
||||
madlang = haskell.lib.compose.justStaticExecutables haskellPackages.madlang;
|
||||
|
||||
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 { };
|
||||
};
|
||||
};
|
||||
mailnagWithPlugins = mailnag.withPlugins (builtins.attrValues mailnag.availablePlugins);
|
||||
|
||||
man = man-db;
|
||||
|
||||
mangohud = callPackage ../tools/graphics/mangohud {
|
||||
|
||||
Reference in New Issue
Block a user