waybar: 0.9.16 -> 0.9.17

update waybar and add mprisSupport
This commit is contained in:
Erik Rodriguez 2023-01-13 20:31:15 -03:00
parent 2ff336107f
commit 60d89a0fc2
No known key found for this signature in database
GPG Key ID: 5979ED35ED299E6D

View File

@ -20,6 +20,7 @@
, inputSupport ? true, libinput
, jackSupport ? true, libjack2
, mpdSupport ? true, libmpdclient
, mprisSupport ? stdenv.isLinux, playerctl ? false
, nlSupport ? true, libnl
, pulseSupport ? true, libpulseaudio
, rfkillSupport ? true
@ -30,18 +31,18 @@
, udevSupport ? true, udev
, upowerSupport ? true, upower
, wireplumberSupport ? true, wireplumber
, withMediaPlayer ? false, glib, gobject-introspection, python3, playerctl
, withMediaPlayer ? mprisSupport && false, glib, gobject-introspection, python3
}:
stdenv.mkDerivation rec {
pname = "waybar";
version = "0.9.16";
version = "0.9.17";
src = fetchFromGitHub {
owner = "Alexays";
repo = "Waybar";
rev = version;
sha256 = "sha256-hcU0ijWIN7TtIPkURVmAh0kanQWkBUa22nubj7rSfBs=";
hash = "sha256-sdNenmzI/yvN9w4Z83ojDJi+2QBx2hxhJQCFkc5kCZw=";
};
nativeBuildInputs = [
@ -53,6 +54,7 @@ stdenv.mkDerivation rec {
playerctl
python3.pkgs.pygobject3
];
strictDeps = false;
buildInputs = with lib;
@ -62,6 +64,7 @@ stdenv.mkDerivation rec {
++ optional inputSupport libinput
++ optional jackSupport libjack2
++ optional mpdSupport libmpdclient
++ optional mprisSupport playerctl
++ optional nlSupport libnl
++ optional pulseSupport libpulseaudio
++ optional sndioSupport sndio
@ -83,6 +86,7 @@ stdenv.mkDerivation rec {
libnl = nlSupport;
libudev = udevSupport;
mpd = mpdSupport;
mpris = mprisSupport;
pulseaudio = pulseSupport;
rfkill = rfkillSupport;
sndio = sndioSupport;
@ -104,9 +108,10 @@ stdenv.mkDerivation rec {
'';
meta = with lib; {
changelog = "https://github.com/alexays/waybar/releases/tag/${version}";
description = "Highly customizable Wayland bar for Sway and Wlroots based compositors";
license = licenses.mit;
maintainers = with maintainers; [ FlorianFranzen minijackson synthetica lovesegfault ];
maintainers = with maintainers; [ FlorianFranzen minijackson synthetica lovesegfault rodrgz ];
platforms = platforms.unix;
homepage = "https://github.com/alexays/waybar";
};