3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/waybar/default.nix

54 lines
1.6 KiB
Nix
Raw Normal View History

2019-01-26 15:43:16 +00:00
{ stdenv, fetchFromGitHub, meson, pkgconfig, ninja
2019-05-25 15:44:23 +01:00
, wayland, wlroots, gtkmm3, libinput, libsigcxx, jsoncpp, fmt, spdlog
2019-01-26 15:43:16 +00:00
, traySupport ? true, libdbusmenu-gtk3
, pulseSupport ? false, libpulseaudio
, nlSupport ? true, libnl
2019-03-26 15:37:24 +00:00
, udevSupport ? true, udev
2019-01-26 15:43:16 +00:00
, swaySupport ? true, sway
2019-05-01 10:25:30 +01:00
, mpdSupport ? true, mpd_clientlib
2019-01-26 15:43:16 +00:00
}:
stdenv.mkDerivation rec {
2019-06-10 13:35:06 +01:00
pname = "waybar";
2019-06-23 11:38:35 +01:00
version = "0.7.0";
2019-01-26 15:43:16 +00:00
src = fetchFromGitHub {
owner = "Alexays";
repo = "Waybar";
rev = version;
2019-06-23 11:38:35 +01:00
sha256 = "0fylq8sz00zv7jvjp7pgckabvmhanpcsqfvpw8c84vy4d8dvqbkx";
2019-01-26 15:43:16 +00:00
};
nativeBuildInputs = [
meson ninja pkgconfig
];
buildInputs = with stdenv.lib;
2019-05-25 15:44:23 +01:00
[ wayland wlroots gtkmm3 libinput libsigcxx jsoncpp fmt spdlog ]
2019-01-26 15:43:16 +00:00
++ optional traySupport libdbusmenu-gtk3
++ optional pulseSupport libpulseaudio
++ optional nlSupport libnl
2019-03-26 15:37:24 +00:00
++ optional udevSupport udev
2019-05-01 10:25:30 +01:00
++ optional swaySupport sway
++ optional mpdSupport mpd_clientlib;
2019-01-26 15:43:16 +00:00
2019-06-04 20:15:29 +01: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 15:43:16 +00: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 13:36:22 +01:00
maintainers = with maintainers; [ FlorianFranzen minijackson synthetica ];
2019-01-26 15:43:16 +00:00
platforms = platforms.unix;
};
}