Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions pkgs/applications/networking/mailreaders/systray-x/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
lib,
stdenv,
fetchgit,
qtbase,
wrapQtAppsHook,
knotifications,
zip,
which,
git,
}:
stdenv.mkDerivation rec {
name = "systray-x";

src = fetchgit {
url = "https://github.com/Ximi1970/systray-x.git";
rev = "0.9.2";
sha256 = "sha256-rRTyM8dJTfVyPYa43E461yxrUpjvOxGzWz+3IafvOxs=";
leaveDotGit = true;
};

buildInputs = [qtbase knotifications];
nativeBuildInputs = [zip wrapQtAppsHook which git];

installPhase = ''
mkdir -p $out/bin
mkdir -p $out/lib/mozilla/native-messaging-hosts
mkdir -p $out/lib/mozilla/thunderbird-addons/extensions
mv systray-x@Ximi1970.xpi $out/lib/mozilla/thunderbird-addons/extensions
mv SysTray-X $out/bin
sed -i s@/path/to/native-messaging/app@$out/bin@ app/SysTray_X.json
mv app/SysTray_X.json $out/lib/mozilla/native-messaging-hosts
'';

meta = with lib; {
description = "A system tray extension for Thunderbird 68+";
longDescription = ''
The addon uses the WebExtension API's to control an external system dependent system tray application.
Needs both the addon AND the companion app installed to work.
Will not work with full wayland desktops.
'';
homepage = "https://github.com/Ximi1970/systray-x";
license = licenses.mpl20;
maintainers = [maintainers.zahrun];
platforms = platforms.all;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34093,6 +34093,8 @@ with pkgs;

synergyWithoutGUI = synergy.override { withGUI = false; };

systray-x = libsForQt5.callPackage ../applications/networking/mailreaders/systray-x { } ;

tabbed = callPackage ../applications/window-managers/tabbed {
# if you prefer a custom config, write the config.h in tabbed.config.h
# and enable
Expand Down