diff options
author | Jonas Heinrich <onny@project-insanity.org> | 2024-02-11 11:32:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-11 11:32:24 +0100 |
commit | 30c055c3083129924e72c78f535eb441793aeb49 (patch) | |
tree | 2db30476c8fd89353da6353cf72e72baa05a12b5 /pkgs/applications/networking/mailreaders | |
parent | 3b8080c6bdbfb61ca58b86840daba37d3c1a634e (diff) | |
parent | 4be3b0d1be4d9e6242d359b7afc373542e595981 (diff) |
Merge pull request #258770 from FliegendeWurst/bluemail-update
bluemail: 1.136.21-1884 -> 1.140.8-1922 and add desktop item
Diffstat (limited to 'pkgs/applications/networking/mailreaders')
-rw-r--r-- | pkgs/applications/networking/mailreaders/bluemail/default.nix | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/pkgs/applications/networking/mailreaders/bluemail/default.nix b/pkgs/applications/networking/mailreaders/bluemail/default.nix index 66874705810b4..d7e1a4026de33 100644 --- a/pkgs/applications/networking/mailreaders/bluemail/default.nix +++ b/pkgs/applications/networking/mailreaders/bluemail/default.nix @@ -3,6 +3,7 @@ , fetchurl , dpkg , autoPatchelfHook +, copyDesktopItems , pango , gtk3 , alsa-lib @@ -11,6 +12,7 @@ , libdrm , mesa , libxshmfence +, makeDesktopItem , makeWrapper , wrapGAppsHook , gcc-unwrapped @@ -19,18 +21,32 @@ stdenv.mkDerivation rec { pname = "bluemail"; - version = "1.136.21-1884"; + version = "1.140.8-1922"; # Taking a snapshot of the DEB release because there are no tagged version releases. # For new versions, download the upstream release, extract it and check for the version string. # In case there's a new version, create a snapshot of it on https://archive.org before updating it here. src = fetchurl { - url = "https://archive.org/download/blue-mail-1.136.21-1884/BlueMail.deb"; - hash = "sha256-L9mCUjsEcalVxzl80P3QzVclCKa75So2sBG7KjjBVIc="; + url = "https://web.archive.org/web/20240208120704/https://download.bluemail.me/BlueMail/deb/BlueMail.deb"; + hash = "sha256-dnYOb3Q/9vSDssHGS2ywC/Q24Oq96/mvKF+eqd/4dVw="; }; + desktopItems = [ + (makeDesktopItem { + name = "bluemail"; + icon = "bluemail"; + exec = "bluemail"; + desktopName = "BlueMail"; + comment = meta.description; + genericName = "Email Reader"; + mimeTypes = [ "x-scheme-handler/me.blueone.linux" "x-scheme-handler/mailto" ]; + categories = [ "Office" ]; + }) + ]; + nativeBuildInputs = [ autoPatchelfHook + copyDesktopItems makeWrapper dpkg wrapGAppsHook @@ -55,9 +71,16 @@ stdenv.mkDerivation rec { dontWrapGApps = true; installPhase = '' + runHook preInstall + mkdir -p $out/bin mv opt/BlueMail/* $out ln -s $out/bluemail $out/bin/bluemail + + mkdir -p $out/share/icons + mv usr/share/icons/hicolor $out/share/icons/ + + runHook postInstall ''; makeWrapperArgs = [ |