nwg-panel: format with nixfmt

This commit is contained in:
Gliczy 2024-11-16 18:28:45 +01:00
parent d7dc5ef9af
commit 259125e15c

View File

@ -1,17 +1,24 @@
{ lib, fetchFromGitHub
, python3Packages, wrapGAppsHook3, gobject-introspection
, gtk-layer-shell, pango, gdk-pixbuf, atk
# Extra packages called by various internal nwg-panel modules
, hyprland # hyprctl
, sway # swaylock, swaymsg
, systemd # systemctl
, wlr-randr # wlr-randr
, nwg-menu # nwg-menu
, brightnessctl # brightnessctl
, pamixer # pamixer
, pulseaudio # pactl
, libdbusmenu-gtk3 # tray
, playerctl
{
lib,
fetchFromGitHub,
python3Packages,
wrapGAppsHook3,
gobject-introspection,
gtk-layer-shell,
pango,
gdk-pixbuf,
atk,
# Extra packages called by various internal nwg-panel modules
hyprland, # hyprctl
sway, # swaylock, swaymsg
systemd, # systemctl
wlr-randr, # wlr-randr
nwg-menu, # nwg-menu
brightnessctl, # brightnessctl
pamixer, # pamixer
pulseaudio, # pactl
libdbusmenu-gtk3, # tray
playerctl,
}:
python3Packages.buildPythonApplication rec {
@ -32,10 +39,28 @@ python3Packages.buildPythonApplication rec {
strictDeps = false;
dontWrapGApps = true;
buildInputs = [ atk gdk-pixbuf gtk-layer-shell pango playerctl ];
nativeBuildInputs = [ wrapGAppsHook3 gobject-introspection ];
propagatedBuildInputs = (with python3Packages;
[ i3ipc netifaces psutil pybluez pygobject3 requests dasbus setuptools ])
buildInputs = [
atk
gdk-pixbuf
gtk-layer-shell
pango
playerctl
];
nativeBuildInputs = [
wrapGAppsHook3
gobject-introspection
];
propagatedBuildInputs =
(with python3Packages; [
i3ipc
netifaces
psutil
pybluez
pygobject3
requests
dasbus
setuptools
])
# Run-time GTK dependency required by the Tray module
++ [ libdbusmenu-gtk3 ];
@ -49,7 +74,18 @@ python3Packages.buildPythonApplication rec {
makeWrapperArgs+=(
"''${gappsWrapperArgs[@]}"
--prefix XDG_DATA_DIRS : "$out/share"
--prefix PATH : "${lib.makeBinPath [ brightnessctl hyprland nwg-menu pamixer pulseaudio sway systemd wlr-randr ]}"
--prefix PATH : "${
lib.makeBinPath [
brightnessctl
hyprland
nwg-menu
pamixer
pulseaudio
sway
systemd
wlr-randr
]
}"
)
'';