From 12a45cecebc169caabaae75979ddc8f11677140d Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Thu, 11 Jul 2024 16:39:35 +0300 Subject: [PATCH 1/3] ayatana-webmail: 22.12.15 -> 24.5.17 Diff: https://github.com/AyatanaIndicators/ayatana-webmail/compare/22.12.15...24.5.17 Python312 fix was landed according to https://github.com/AyatanaIndicators/ayatana-webmail/issues/38 --- .../networking/mailreaders/ayatana-webmail/default.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/networking/mailreaders/ayatana-webmail/default.nix b/pkgs/applications/networking/mailreaders/ayatana-webmail/default.nix index 4c8cdab32b7d..fcc5aa838585 100644 --- a/pkgs/applications/networking/mailreaders/ayatana-webmail/default.nix +++ b/pkgs/applications/networking/mailreaders/ayatana-webmail/default.nix @@ -2,7 +2,7 @@ , fetchFromGitHub , gettext , gtk3 -, python311Packages +, python3Packages , gdk-pixbuf , libnotify , glib @@ -16,19 +16,15 @@ , libcanberra-gtk3 }: -let - # https://github.com/AyatanaIndicators/ayatana-webmail/issues/38 - python3Packages = python311Packages; -in python3Packages.buildPythonApplication rec { pname = "ayatana-webmail"; - version = "22.12.15"; + version = "24.5.17"; src = fetchFromGitHub { owner = "AyatanaIndicators"; repo = "ayatana-webmail"; rev = version; - hash = "sha256-K2jqCWrY1i1wYdZVpjN/3TcVyWariOQQ4slZf6sEPRU="; + hash = "sha256-k557FWKGq2MXODVxVzOetC5kkwTNYOoLO8msCOabais="; }; postConfigure = '' # Fix fhs paths From d039f2be55869fff1b72984ad4c6588ca511f86e Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Thu, 11 Jul 2024 16:50:56 +0300 Subject: [PATCH 2/3] ayatana-webmail: use --replace-fail in fhs substitution --- .../networking/mailreaders/ayatana-webmail/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/networking/mailreaders/ayatana-webmail/default.nix b/pkgs/applications/networking/mailreaders/ayatana-webmail/default.nix index fcc5aa838585..f76bf10c5267 100644 --- a/pkgs/applications/networking/mailreaders/ayatana-webmail/default.nix +++ b/pkgs/applications/networking/mailreaders/ayatana-webmail/default.nix @@ -32,7 +32,7 @@ python3Packages.buildPythonApplication rec { ayatanawebmail/accounts.py \ ayatanawebmail/actions.py \ ayatanawebmail/dialog.py \ - --replace /usr/share $out/share + --replace-fail /usr/share $out/share ''; buildInputs = [ From 2acb9b5cdaf7969552232b3164ca5e6ade1dec8d Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Thu, 11 Jul 2024 16:53:03 +0300 Subject: [PATCH 3/3] ayatana-webmail: RFC 166 formatting and more --- .../mailreaders/ayatana-webmail/default.nix | 43 ++++++++++--------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/pkgs/applications/networking/mailreaders/ayatana-webmail/default.nix b/pkgs/applications/networking/mailreaders/ayatana-webmail/default.nix index f76bf10c5267..1c99ef0427e3 100644 --- a/pkgs/applications/networking/mailreaders/ayatana-webmail/default.nix +++ b/pkgs/applications/networking/mailreaders/ayatana-webmail/default.nix @@ -1,19 +1,20 @@ -{ 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 +{ + 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, }: python3Packages.buildPythonApplication rec { @@ -23,7 +24,7 @@ python3Packages.buildPythonApplication rec { src = fetchFromGitHub { owner = "AyatanaIndicators"; repo = "ayatana-webmail"; - rev = version; + rev = "refs/tags/${version}"; hash = "sha256-k557FWKGq2MXODVxVzOetC5kkwTNYOoLO8msCOabais="; }; postConfigure = '' @@ -80,11 +81,11 @@ python3Packages.buildPythonApplication rec { makeWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ libcanberra-gtk3 ]}) ''; - meta = with lib; { + meta = { description = "Webmail notifications and actions for any desktop"; homepage = "https://github.com/AyatanaIndicators/ayatana-webmail"; - license = licenses.gpl3Plus; - platforms = platforms.linux; - maintainers = with maintainers; [ doronbehar ]; + license = lib.licenses.gpl3Plus; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ doronbehar ]; }; }