Unverified Commit aa247c0c authored by superherointj's avatar superherointj Committed by GitHub
Browse files

Merge pull request #326316 from doronbehar/pkg/ayatana-webmail

ayatana-webmail: 22.12.15 -> 24.5.17
parents 12ae1055 2acb9b5c
Loading
Loading
Loading
Loading
+25 −28
Original line number Diff line number Diff line
{ lib
, fetchFromGitHub
, gettext
, gtk3
, python311Packages
, gdk-pixbuf
, libnotify
, glib
, gobject-introspection
, wrapGAppsHook3
{
  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
  libayatana-appindicator,
  gsettings-desktop-schemas,
  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=";
    rev = "refs/tags/${version}";
    hash = "sha256-k557FWKGq2MXODVxVzOetC5kkwTNYOoLO8msCOabais=";
  };
  postConfigure = ''
    # Fix fhs paths
@@ -36,7 +33,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 = [
@@ -84,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 ];
  };
}