Skip to content

Commit

Permalink
Add Tail-tray (#380047)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored Feb 17, 2025
2 parents 836bc20 + dfd2eb6 commit 8a4b7b2
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22571,6 +22571,12 @@
githubId = 98333944;
name = "Sven Over";
};
Svenum = {
email = "[email protected]";
github = "Svenum";
githubId = 43136984;
name = "Sven Ziegler";
};
svrana = {
email = "[email protected]";
github = "svrana";
Expand Down
16 changes: 16 additions & 0 deletions pkgs/by-name/ta/tail-tray/desktop.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
diff --git a/tail-tray.desktop.in b/tail-tray.desktop.in
index 2d1c7be..5e859ae 100644
--- a/tail-tray.desktop.in
+++ b/tail-tray.desktop.in
@@ -2,8 +2,8 @@
Name=Tail Tray
GenericName=Tail Tray
Comment=Tailscale Tray Application
-Exec=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_BINDIR@/tail-tray
-Icon=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_DATAROOTDIR@/icons/hicolor/128x128/apps/tailscale.png
+Exec=@CMAKE_INSTALL_PREFIX@/bin/tail-tray
+Icon=@CMAKE_INSTALL_PREFIX@/share/icons/hicolor/128x128/apps/tailscale.png
Type=Application
Categories=Qt;KDE;Utility;X-Networking;X-Internet;X-VPN;
StartupNotify=true

45 changes: 45 additions & 0 deletions pkgs/by-name/ta/tail-tray/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
lib,
fetchFromGitHub,
davfs2,
cmake,
stdenv,
fetchpatch,
pkg-config,
kdePackages,
}:

stdenv.mkDerivation rec {
pname = "tail-tray";
version = "0.2.13";

src = fetchFromGitHub {
owner = "SneWs";
repo = "tail-tray";
tag = "v${version}";
sha256 = "sha256-BzE32XvDEdlS5D8XjZ4m2OEn+6nS0F7oJYX/a/UKhJ4=";
};

nativeBuildInputs = with kdePackages; [
wrapQtAppsHook
qttools
cmake
pkg-config
];

buildInputs = with kdePackages; [
qtbase
davfs2
];

patches = [ ./desktop.patch ];

meta = {
description = "Tray icon to manage Tailscale";
homepage = "https://github.com/SneWs/tail-tray";
changelog = "https://github.com/SneWs/tail-tray/releases/tag/${version}";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ Svenum ];
platforms = lib.platforms.linux;
};
}

0 comments on commit 8a4b7b2

Please sign in to comment.