2019-01-26 16:43:16 +01:00
|
|
|
{ stdenv, fetchFromGitHub, meson, pkgconfig, ninja
|
2019-08-29 12:13:36 +02:00
|
|
|
, wayland, wlroots, gtkmm3, libinput, libsigcxx, jsoncpp, fmt, scdoc, spdlog
|
2019-01-26 16:43:16 +01:00
|
|
|
, traySupport ? true, libdbusmenu-gtk3
|
|
|
|
, pulseSupport ? false, libpulseaudio
|
|
|
|
, nlSupport ? true, libnl
|
2019-03-26 16:37:24 +01:00
|
|
|
, udevSupport ? true, udev
|
2019-01-26 16:43:16 +01:00
|
|
|
, swaySupport ? true, sway
|
2019-05-01 11:25:30 +02:00
|
|
|
, mpdSupport ? true, mpd_clientlib
|
2019-01-26 16:43:16 +01:00
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
2019-06-10 14:35:06 +02:00
|
|
|
pname = "waybar";
|
2019-08-29 12:13:36 +02:00
|
|
|
version = "0.8.0";
|
2019-01-26 16:43:16 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Alexays";
|
|
|
|
repo = "Waybar";
|
|
|
|
rev = version;
|
2019-08-29 12:13:36 +02:00
|
|
|
sha256 = "0s8ck7qxka0l91ayma6amp9sc8cidi43byqgzcavi3a6id983r1z";
|
2019-01-26 16:43:16 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2019-08-29 12:13:36 +02:00
|
|
|
meson ninja pkgconfig scdoc
|
2019-01-26 16:43:16 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = with stdenv.lib;
|
2019-05-25 16:44:23 +02:00
|
|
|
[ wayland wlroots gtkmm3 libinput libsigcxx jsoncpp fmt spdlog ]
|
2019-01-26 16:43:16 +01:00
|
|
|
++ optional traySupport libdbusmenu-gtk3
|
|
|
|
++ optional pulseSupport libpulseaudio
|
|
|
|
++ optional nlSupport libnl
|
2019-03-26 16:37:24 +01:00
|
|
|
++ optional udevSupport udev
|
2019-05-01 11:25:30 +02:00
|
|
|
++ optional swaySupport sway
|
|
|
|
++ optional mpdSupport mpd_clientlib;
|
2019-01-26 16:43:16 +01:00
|
|
|
|
2019-06-04 21:15:29 +02:00
|
|
|
mesonFlags = (stdenv.lib.mapAttrsToList
|
|
|
|
(option: enable: "-D${option}=${if enable then "enabled" else "disabled"}")
|
|
|
|
{
|
|
|
|
dbusmenu-gtk = traySupport;
|
|
|
|
pulseaudio = pulseSupport;
|
|
|
|
libnl = nlSupport;
|
|
|
|
libudev = udevSupport;
|
|
|
|
mpd = mpdSupport;
|
|
|
|
}
|
|
|
|
) ++ [
|
2019-01-26 16:43:16 +01:00
|
|
|
"-Dout=${placeholder "out"}"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Highly customizable Wayland bar for Sway and Wlroots based compositors";
|
|
|
|
license = licenses.mit;
|
2019-06-10 14:36:22 +02:00
|
|
|
maintainers = with maintainers; [ FlorianFranzen minijackson synthetica ];
|
2019-01-26 16:43:16 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|