2 , python3Packages, wrapGAppsHook, gobject-introspection
3 , gtk-layer-shell, pango, gdk-pixbuf, atk
4 # Extra packages called by various internal nwg-panel modules
5 , sway # swaylock, swaymsg
7 , wlr-randr # wlr-randr
12 , libdbusmenu-gtk3 # tray
15 python3Packages.buildPythonApplication rec {
19 src = fetchFromGitHub {
22 rev = "refs/tags/v${version}";
23 sha256 = "sha256-Esr1OPyQCCQIOfgkl6RIn93ZaJkF0O2RM9ObIgBlPi4=";
29 # Because of wrapGAppsHook
33 buildInputs = [ atk gdk-pixbuf gtk-layer-shell pango ];
34 nativeBuildInputs = [ wrapGAppsHook gobject-introspection ];
35 propagatedBuildInputs = (with python3Packages;
36 [ i3ipc netifaces psutil pybluez pygobject3 requests dasbus setuptools ])
37 # Run-time GTK dependency required by the Tray module
38 ++ [ libdbusmenu-gtk3 ];
41 mkdir -p $out/share/{applications,pixmaps}
42 cp $src/nwg-panel-config.desktop $out/share/applications/
43 cp $src/nwg-shell.svg $src/nwg-panel.svg $out/share/pixmaps/
48 "''${gappsWrapperArgs[@]}"
49 --prefix XDG_DATA_DIRS : "$out/share"
50 --prefix PATH : "${lib.makeBinPath [ light nwg-menu pamixer pulseaudio sway systemd wlr-randr ]}"
55 homepage = "https://github.com/nwg-piotr/nwg-panel";
56 description = "GTK3-based panel for Sway window manager";
57 license = licenses.mit;
58 platforms = platforms.linux;
59 maintainers = with maintainers; [ berbiche ];