hyprpanel: init at 0-unstable-2025-06-20
This commit is contained in:
@@ -0,0 +1,127 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
ags,
|
||||
astal,
|
||||
bluez,
|
||||
bluez-tools,
|
||||
brightnessctl,
|
||||
btop,
|
||||
dart-sass,
|
||||
fetchFromGitHub,
|
||||
glib,
|
||||
glib-networking,
|
||||
gnome-bluetooth,
|
||||
gpu-screen-recorder,
|
||||
gpustat,
|
||||
grimblast,
|
||||
gtksourceview3,
|
||||
gvfs,
|
||||
hyprpicker,
|
||||
libgtop,
|
||||
libnotify,
|
||||
libsoup_3,
|
||||
matugen,
|
||||
networkmanager,
|
||||
nix-update-script,
|
||||
python3,
|
||||
pywal,
|
||||
stdenv,
|
||||
swww,
|
||||
upower,
|
||||
wireplumber,
|
||||
wl-clipboard,
|
||||
writeShellScript,
|
||||
|
||||
enableCuda ? config.cudaSupport,
|
||||
}:
|
||||
ags.bundle {
|
||||
pname = "hyprpanel";
|
||||
version = "0-unstable-2025-06-20";
|
||||
|
||||
__structuredAttrs = true;
|
||||
strictDeps = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Jas-SinghFSU";
|
||||
repo = "HyprPanel";
|
||||
rev = "d563cdb1f6499d981901336bd0f86303ab95c4a5";
|
||||
hash = "sha256-oREAoOQeAExqWMkw2r3BJfiaflh7QwHFkp8Qm0qDu6o=";
|
||||
};
|
||||
|
||||
# keep in sync with https://github.com/Jas-SinghFSU/HyprPanel/blob/master/flake.nix#L42
|
||||
dependencies = [
|
||||
astal.apps
|
||||
astal.battery
|
||||
astal.bluetooth
|
||||
astal.cava
|
||||
astal.hyprland
|
||||
astal.mpris
|
||||
astal.network
|
||||
astal.notifd
|
||||
astal.powerprofiles
|
||||
astal.tray
|
||||
astal.wireplumber
|
||||
|
||||
bluez
|
||||
bluez-tools
|
||||
brightnessctl
|
||||
btop
|
||||
dart-sass
|
||||
glib
|
||||
gnome-bluetooth
|
||||
grimblast
|
||||
gtksourceview3
|
||||
gvfs
|
||||
hyprpicker
|
||||
libgtop
|
||||
libnotify
|
||||
libsoup_3
|
||||
matugen
|
||||
networkmanager
|
||||
pywal
|
||||
swww
|
||||
upower
|
||||
wireplumber
|
||||
wl-clipboard
|
||||
(python3.withPackages (
|
||||
ps:
|
||||
with ps;
|
||||
[
|
||||
dbus-python
|
||||
pygobject3
|
||||
]
|
||||
++ lib.optional enableCuda gpustat
|
||||
))
|
||||
] ++ (lib.optionals (stdenv.hostPlatform.system == "x86_64-linux") [ gpu-screen-recorder ]);
|
||||
|
||||
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
|
||||
|
||||
postFixup =
|
||||
let
|
||||
script = writeShellScript "hyprpanel" ''
|
||||
export GIO_EXTRA_MODULES='${glib-networking}/lib/gio/modules'
|
||||
if [ "$#" -eq 0 ]; then
|
||||
exec @out@/bin/.hyprpanel
|
||||
else
|
||||
exec ${astal.io}/bin/astal -i hyprpanel "$*"
|
||||
fi
|
||||
'';
|
||||
in
|
||||
# bash
|
||||
''
|
||||
mv "$out/bin/hyprpanel" "$out/bin/.hyprpanel"
|
||||
cp '${script}' "$out/bin/hyprpanel"
|
||||
substituteInPlace "$out/bin/hyprpanel" \
|
||||
--replace-fail '@out@' "$out"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Bar/Panel for Hyprland with extensive customizability";
|
||||
homepage = "https://github.com/Jas-SinghFSU/HyprPanel";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ perchun ];
|
||||
mainProgram = "hyprpanel";
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user