2019-01-26 16:43:16 +01:00
|
|
|
{ stdenv, fetchFromGitHub, meson, pkgconfig, ninja
|
|
|
|
, wayland, wlroots, gtkmm3, libinput, libsigcxx, jsoncpp, fmt
|
|
|
|
, 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 {
|
|
|
|
name = "waybar-${version}";
|
2019-05-18 10:19:16 +02:00
|
|
|
version = "0.6.5";
|
2019-01-26 16:43:16 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Alexays";
|
|
|
|
repo = "Waybar";
|
|
|
|
rev = version;
|
2019-05-18 10:19:16 +02:00
|
|
|
sha256 = "1k3ynx5ssq7ji0nlx0n7zrgrshxv5abj8fa8c5lcyxr2wxffna9z";
|
2019-01-26 16:43:16 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson ninja pkgconfig
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = with stdenv.lib;
|
|
|
|
[ wayland wlroots gtkmm3 libinput libsigcxx jsoncpp fmt ]
|
|
|
|
++ 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
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Ddbusmenu-gtk=${ if traySupport then "enabled" else "disabled" }"
|
|
|
|
"-Dpulseaudio=${ if pulseSupport then "enabled" else "disabled" }"
|
|
|
|
"-Dlibnl=${ if nlSupport then "enabled" else "disabled" }"
|
2019-03-26 16:37:24 +01:00
|
|
|
"-Dlibudev=${ if udevSupport then "enabled" else "disabled" }"
|
2019-05-01 11:25:30 +02:00
|
|
|
"-Dmpd=${ if mpdSupport then "enabled" else "disabled" }"
|
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-03-26 16:37:24 +01:00
|
|
|
maintainers = with maintainers; [ FlorianFranzen minijackson ];
|
2019-01-26 16:43:16 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|