feat: tray icon
This commit is contained in:
8 files changed
+432
No files matched your search
@@ -0,0 +1,33 @@
|
||||
{
|
||||
pkgs,
|
||||
pollInterval ? 5,
|
||||
}:
|
||||
|
||||
pkgs.stdenv.mkDerivation {
|
||||
pname = "proxy-suite-tray";
|
||||
version = "0.1.0";
|
||||
|
||||
src = ./proxy-suite-tray;
|
||||
|
||||
nativeBuildInputs = [ pkgs.pkg-config ];
|
||||
buildInputs = [ pkgs.gtk3 pkgs.libayatana-appindicator ];
|
||||
|
||||
buildPhase = ''
|
||||
$CC -o proxy-suite-tray main.c \
|
||||
$(pkg-config --cflags --libs gtk+-3.0 ayatana-appindicator3-0.1) \
|
||||
-DSYSTEMCTL_BIN='"${pkgs.systemd}/bin/systemctl"' \
|
||||
-DPKEXEC_BIN='"/run/wrappers/bin/pkexec"' \
|
||||
-DPOLL_INTERVAL=${toString pollInterval} \
|
||||
-O2 -Wall
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp proxy-suite-tray $out/bin/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "System tray indicator for proxy-suite";
|
||||
mainProgram = "proxy-suite-tray";
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user