waybar: mpd_clientlib -> libmpdclient
This commit is contained in:
parent
9ac26e0f9c
commit
a6b8246c91
@ -1,5 +1,19 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, meson, pkg-config, ninja, wrapGAppsHook
|
{ lib
|
||||||
, wayland, wlroots, gtkmm3, libsigcxx, jsoncpp, fmt, scdoc, spdlog, gtk-layer-shell
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, meson
|
||||||
|
, pkg-config
|
||||||
|
, ninja
|
||||||
|
, wrapGAppsHook
|
||||||
|
, wayland
|
||||||
|
, wlroots
|
||||||
|
, gtkmm3
|
||||||
|
, libsigcxx
|
||||||
|
, jsoncpp
|
||||||
|
, fmt
|
||||||
|
, scdoc
|
||||||
|
, spdlog
|
||||||
|
, gtk-layer-shell
|
||||||
, howard-hinnant-date, cmake
|
, howard-hinnant-date, cmake
|
||||||
, traySupport ? true, libdbusmenu-gtk3
|
, traySupport ? true, libdbusmenu-gtk3
|
||||||
, pulseSupport ? true, libpulseaudio
|
, pulseSupport ? true, libpulseaudio
|
||||||
@ -7,68 +21,69 @@
|
|||||||
, nlSupport ? true, libnl
|
, nlSupport ? true, libnl
|
||||||
, udevSupport ? true, udev
|
, udevSupport ? true, udev
|
||||||
, swaySupport ? true, sway
|
, swaySupport ? true, sway
|
||||||
, mpdSupport ? true, mpd_clientlib
|
, mpdSupport ? true, libmpdclient
|
||||||
, withMediaPlayer ? false, glib, gobject-introspection, python3, python38Packages, playerctl
|
, withMediaPlayer ? false, glib, gobject-introspection, python3, python38Packages, playerctl
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
pname = "waybar";
|
|
||||||
version = "0.9.5";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
stdenv.mkDerivation rec {
|
||||||
owner = "Alexays";
|
pname = "waybar";
|
||||||
repo = "Waybar";
|
version = "0.9.5";
|
||||||
rev = version;
|
|
||||||
sha256 = "1kzrgqaclfk6gcwhknxn28xl74gm5swipgn8kk8avacb4nsw1l9q";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
src = fetchFromGitHub {
|
||||||
meson ninja pkg-config scdoc wrapGAppsHook cmake
|
owner = "Alexays";
|
||||||
] ++ lib.optional withMediaPlayer gobject-introspection;
|
repo = "Waybar";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1kzrgqaclfk6gcwhknxn28xl74gm5swipgn8kk8avacb4nsw1l9q";
|
||||||
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = lib.optionals withMediaPlayer [
|
nativeBuildInputs = [
|
||||||
glib
|
meson ninja pkg-config scdoc wrapGAppsHook cmake
|
||||||
playerctl
|
] ++ lib.optional withMediaPlayer gobject-introspection;
|
||||||
python38Packages.pygobject3
|
|
||||||
];
|
|
||||||
strictDeps = false;
|
|
||||||
|
|
||||||
buildInputs = with lib;
|
propagatedBuildInputs = lib.optionals withMediaPlayer [
|
||||||
[ wayland wlroots gtkmm3 libsigcxx jsoncpp fmt spdlog gtk-layer-shell howard-hinnant-date ]
|
glib
|
||||||
++ optional traySupport libdbusmenu-gtk3
|
playerctl
|
||||||
++ optional pulseSupport libpulseaudio
|
python38Packages.pygobject3
|
||||||
++ optional sndioSupport sndio
|
];
|
||||||
++ optional nlSupport libnl
|
strictDeps = false;
|
||||||
++ optional udevSupport udev
|
|
||||||
++ optional swaySupport sway
|
|
||||||
++ optional mpdSupport mpd_clientlib;
|
|
||||||
|
|
||||||
mesonFlags = (lib.mapAttrsToList
|
buildInputs = with lib;
|
||||||
(option: enable: "-D${option}=${if enable then "enabled" else "disabled"}")
|
[ wayland wlroots gtkmm3 libsigcxx jsoncpp fmt spdlog gtk-layer-shell howard-hinnant-date ]
|
||||||
{
|
++ optional traySupport libdbusmenu-gtk3
|
||||||
dbusmenu-gtk = traySupport;
|
++ optional pulseSupport libpulseaudio
|
||||||
pulseaudio = pulseSupport;
|
++ optional sndioSupport sndio
|
||||||
sndio = sndioSupport;
|
++ optional nlSupport libnl
|
||||||
libnl = nlSupport;
|
++ optional udevSupport udev
|
||||||
libudev = udevSupport;
|
++ optional swaySupport sway
|
||||||
mpd = mpdSupport;
|
++ optional mpdSupport libmpdclient;
|
||||||
}
|
|
||||||
) ++ [
|
|
||||||
"-Dout=${placeholder "out"}"
|
|
||||||
"-Dsystemd=disabled"
|
|
||||||
];
|
|
||||||
|
|
||||||
preFixup = lib.optional withMediaPlayer ''
|
mesonFlags = (lib.mapAttrsToList
|
||||||
|
(option: enable: "-D${option}=${if enable then "enabled" else "disabled"}")
|
||||||
|
{
|
||||||
|
dbusmenu-gtk = traySupport;
|
||||||
|
pulseaudio = pulseSupport;
|
||||||
|
sndio = sndioSupport;
|
||||||
|
libnl = nlSupport;
|
||||||
|
libudev = udevSupport;
|
||||||
|
mpd = mpdSupport;
|
||||||
|
}
|
||||||
|
) ++ [
|
||||||
|
"-Dout=${placeholder "out"}"
|
||||||
|
"-Dsystemd=disabled"
|
||||||
|
];
|
||||||
|
|
||||||
|
preFixup = lib.optional withMediaPlayer ''
|
||||||
cp $src/resources/custom_modules/mediaplayer.py $out/bin/waybar-mediaplayer.py
|
cp $src/resources/custom_modules/mediaplayer.py $out/bin/waybar-mediaplayer.py
|
||||||
|
|
||||||
wrapProgram $out/bin/waybar-mediaplayer.py \
|
wrapProgram $out/bin/waybar-mediaplayer.py \
|
||||||
--prefix PYTHONPATH : "$PYTHONPATH:$out/${python3.sitePackages}"
|
--prefix PYTHONPATH : "$PYTHONPATH:$out/${python3.sitePackages}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Highly customizable Wayland bar for Sway and Wlroots based compositors";
|
description = "Highly customizable Wayland bar for Sway and Wlroots based compositors";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ FlorianFranzen minijackson synthetica ];
|
maintainers = with maintainers; [ FlorianFranzen minijackson synthetica ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
homepage = "https://github.com/alexays/waybar";
|
homepage = "https://github.com/alexays/waybar";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user