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
16 python3Packages.buildPythonApplication rec {
20 src = fetchFromGitHub {
24 hash = "sha256-xHAn8NWSWSm95SIX1M8HIQwgNBq5/K5xsanbkAKfXSw=";
30 # Because of wrapGAppsHook
34 buildInputs = [ atk gdk-pixbuf gtk-layer-shell pango playerctl ];
35 nativeBuildInputs = [ wrapGAppsHook gobject-introspection ];
36 propagatedBuildInputs = (with python3Packages;
37 [ i3ipc netifaces psutil pybluez pygobject3 requests dasbus setuptools ])
38 # Run-time GTK dependency required by the Tray module
39 ++ [ libdbusmenu-gtk3 ];
42 mkdir -p $out/share/{applications,pixmaps}
43 cp $src/nwg-panel-config.desktop $out/share/applications/
44 cp $src/nwg-shell.svg $src/nwg-panel.svg $out/share/pixmaps/
49 "''${gappsWrapperArgs[@]}"
50 --prefix XDG_DATA_DIRS : "$out/share"
51 --prefix PATH : "${lib.makeBinPath [ light nwg-menu pamixer pulseaudio sway systemd wlr-randr ]}"
56 homepage = "https://github.com/nwg-piotr/nwg-panel";
57 description = "GTK3-based panel for Sway window manager";
58 license = licenses.mit;
59 platforms = platforms.linux;
60 maintainers = with maintainers; [ ludovicopiero ];
61 mainProgram = "nwg-panel";