2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2021-08-08 23:34:03 +00:00
|
|
|
, fetchFromGitea
|
2021-06-28 23:13:55 +00:00
|
|
|
, alsa-lib
|
2022-12-28 21:21:41 +00:00
|
|
|
, bison
|
2021-02-13 14:23:35 +00:00
|
|
|
, fcft
|
2022-12-28 21:21:41 +00:00
|
|
|
, flex
|
2021-02-13 14:23:35 +00:00
|
|
|
, json_c
|
|
|
|
, libmpdclient
|
2021-12-06 16:07:01 +00:00
|
|
|
, libxcb
|
2021-02-13 14:23:35 +00:00
|
|
|
, libyaml
|
2021-12-06 16:07:01 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2022-12-28 21:21:41 +00:00
|
|
|
, pipewire
|
2021-02-13 14:23:35 +00:00
|
|
|
, pixman
|
2021-12-06 16:07:01 +00:00
|
|
|
, pkg-config
|
2022-12-28 21:21:41 +00:00
|
|
|
, pulseaudio
|
2021-12-06 16:07:01 +00:00
|
|
|
, scdoc
|
2021-02-13 14:23:35 +00:00
|
|
|
, tllist
|
|
|
|
, udev
|
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
2021-12-06 16:07:01 +00:00
|
|
|
, wayland-scanner
|
2021-02-13 14:23:35 +00:00
|
|
|
, xcbutil
|
|
|
|
, xcbutilcursor
|
|
|
|
, xcbutilerrors
|
|
|
|
, xcbutilwm
|
2021-12-06 16:07:01 +00:00
|
|
|
, waylandSupport ? true
|
|
|
|
, x11Support ? true
|
2021-02-13 14:23:35 +00:00
|
|
|
}:
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
assert (x11Support || waylandSupport);
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-02-13 14:23:35 +00:00
|
|
|
pname = "yambar";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "1.10.0";
|
2021-02-13 14:23:35 +00:00
|
|
|
|
2021-08-08 23:34:03 +00:00
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "codeberg.org";
|
|
|
|
owner = "dnkl";
|
|
|
|
repo = "yambar";
|
2022-12-28 21:21:41 +00:00
|
|
|
rev = finalAttrs.version;
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-+bNTEPGV5xaVXhsejyK+FCcJ9J06KS6x7/qo6P2DnZI=";
|
2021-02-13 14:23:35 +00:00
|
|
|
};
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
|
|
|
depsBuildBuild = [ pkg-config ];
|
|
|
|
|
2021-08-08 23:34:03 +00:00
|
|
|
nativeBuildInputs = [
|
2022-12-28 21:21:41 +00:00
|
|
|
bison
|
|
|
|
flex
|
2021-08-08 23:34:03 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2022-12-28 21:21:41 +00:00
|
|
|
pkg-config
|
2021-08-08 23:34:03 +00:00
|
|
|
scdoc
|
|
|
|
wayland-scanner
|
|
|
|
];
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
buildInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
alsa-lib
|
2021-02-13 14:23:35 +00:00
|
|
|
fcft
|
|
|
|
json_c
|
|
|
|
libmpdclient
|
|
|
|
libyaml
|
2022-12-28 21:21:41 +00:00
|
|
|
pipewire
|
2021-02-13 14:23:35 +00:00
|
|
|
pixman
|
2022-12-28 21:21:41 +00:00
|
|
|
pulseaudio
|
2021-02-13 14:23:35 +00:00
|
|
|
tllist
|
|
|
|
udev
|
2021-12-06 16:07:01 +00:00
|
|
|
] ++ lib.optionals (waylandSupport) [
|
2021-02-13 14:23:35 +00:00
|
|
|
wayland
|
|
|
|
wayland-protocols
|
2021-12-06 16:07:01 +00:00
|
|
|
] ++ lib.optionals (x11Support) [
|
2021-02-13 14:23:35 +00:00
|
|
|
xcbutil
|
|
|
|
xcbutilcursor
|
|
|
|
xcbutilerrors
|
|
|
|
xcbutilwm
|
|
|
|
];
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2021-08-08 23:34:03 +00:00
|
|
|
mesonBuildType = "release";
|
|
|
|
|
|
|
|
mesonFlags = [
|
2024-01-13 08:15:51 +00:00
|
|
|
(lib.mesonBool "werror" false)
|
2023-08-04 22:07:22 +00:00
|
|
|
(lib.mesonEnable "backend-x11" x11Support)
|
|
|
|
(lib.mesonEnable "backend-wayland" waylandSupport)
|
2021-08-08 23:34:03 +00:00
|
|
|
];
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
meta = {
|
2021-02-13 14:23:35 +00:00
|
|
|
homepage = "https://codeberg.org/dnkl/yambar";
|
|
|
|
description = "Modular status panel for X11 and Wayland";
|
|
|
|
longDescription = ''
|
|
|
|
yambar is a lightweight and configurable status panel (bar, for short) for
|
|
|
|
X11 and Wayland, that goes to great lengths to be both CPU and battery
|
|
|
|
efficient - polling is only done when absolutely necessary.
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
It has a number of modules that provide information in the form of tags.
|
|
|
|
For example, the clock module has a date tag that contains the current
|
|
|
|
date.
|
2021-02-13 14:23:35 +00:00
|
|
|
|
|
|
|
The modules do not know how to present the information though. This is
|
|
|
|
instead done by particles. And the user, you, decides which particles (and
|
|
|
|
thus how to present the data) to use.
|
|
|
|
|
|
|
|
Furthermore, each particle can have a decoration - a background color or a
|
|
|
|
graphical underline, for example.
|
|
|
|
|
|
|
|
There is no support for images or icons. use an icon font (e.g. Font
|
|
|
|
Awesome, or Material Icons) if you want a graphical representation.
|
|
|
|
|
|
|
|
There are a number of modules and particles builtin. More can be added as
|
|
|
|
plugins. You can even write your own!
|
|
|
|
|
|
|
|
To summarize: a bar displays information provided by modules, using
|
|
|
|
particles and decorations. How is configured by you.
|
|
|
|
'';
|
2023-08-04 22:07:22 +00:00
|
|
|
changelog = "https://codeberg.org/dnkl/yambar/releases/tag/${finalAttrs.version}";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
|
|
platforms = lib.platforms.linux;
|
2021-02-13 14:23:35 +00:00
|
|
|
};
|
2022-12-28 21:21:41 +00:00
|
|
|
})
|