2024-07-11 13:53:03 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
gettext,
|
|
|
|
gtk3,
|
|
|
|
python3Packages,
|
|
|
|
gdk-pixbuf,
|
|
|
|
libnotify,
|
|
|
|
glib,
|
|
|
|
gobject-introspection,
|
|
|
|
wrapGAppsHook3,
|
|
|
|
# BTW libappindicator is also supported, but upstream recommends their
|
|
|
|
# implementation, see:
|
|
|
|
# https://github.com/AyatanaIndicators/ayatana-webmail/issues/24#issuecomment-1050352862
|
|
|
|
libayatana-appindicator,
|
|
|
|
gsettings-desktop-schemas,
|
|
|
|
libcanberra-gtk3,
|
2023-06-21 15:28:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "ayatana-webmail";
|
2024-07-11 13:39:35 +00:00
|
|
|
version = "24.5.17";
|
2023-06-21 15:28:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "AyatanaIndicators";
|
|
|
|
repo = "ayatana-webmail";
|
2024-07-11 13:53:03 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-07-11 13:39:35 +00:00
|
|
|
hash = "sha256-k557FWKGq2MXODVxVzOetC5kkwTNYOoLO8msCOabais=";
|
2023-06-21 15:28:03 +00:00
|
|
|
};
|
|
|
|
postConfigure = ''
|
|
|
|
# Fix fhs paths
|
|
|
|
substituteInPlace \
|
|
|
|
ayatanawebmail/accounts.py \
|
|
|
|
ayatanawebmail/actions.py \
|
|
|
|
ayatanawebmail/dialog.py \
|
2024-07-11 13:50:56 +00:00
|
|
|
--replace-fail /usr/share $out/share
|
2023-06-21 15:28:03 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
|
|
|
libnotify
|
|
|
|
gettext
|
|
|
|
libayatana-appindicator
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gobject-introspection
|
2024-04-26 20:24:03 +00:00
|
|
|
wrapGAppsHook3
|
2023-06-21 15:28:03 +00:00
|
|
|
glib # For compiling gsettings-schemas
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
urllib3
|
|
|
|
babel
|
|
|
|
psutil
|
|
|
|
secretstorage
|
|
|
|
polib
|
|
|
|
pygobject3
|
|
|
|
dbus-python
|
|
|
|
];
|
|
|
|
|
|
|
|
# No tests, and they cause a failure
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# Fix fhs paths
|
|
|
|
mv $out/${python3Packages.python.sitePackages}/etc $out
|
|
|
|
mv $out/${python3Packages.python.sitePackages}/usr/{bin,share} $out/
|
|
|
|
rmdir $out/${python3Packages.python.sitePackages}/usr
|
|
|
|
# Compile gsettings desktop schemas
|
|
|
|
glib-compile-schemas $out/share/glib-2.0/schemas
|
|
|
|
'';
|
|
|
|
|
|
|
|
# See https://nixos.org/nixpkgs/manual/#ssec-gnome-common-issues-double-wrapped
|
|
|
|
dontWrapGApps = true;
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
makeWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ libcanberra-gtk3 ]})
|
|
|
|
'';
|
|
|
|
|
2024-07-11 13:53:03 +00:00
|
|
|
meta = {
|
2023-06-21 15:28:03 +00:00
|
|
|
description = "Webmail notifications and actions for any desktop";
|
|
|
|
homepage = "https://github.com/AyatanaIndicators/ayatana-webmail";
|
2024-07-11 13:53:03 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = with lib.maintainers; [ doronbehar ];
|
2023-06-21 15:28:03 +00:00
|
|
|
};
|
|
|
|
}
|