27 , waylandSupport ? true
31 assert (x11Support || waylandSupport);
32 stdenv.mkDerivation (finalAttrs: {
36 src = fetchFromGitea {
37 domain = "codeberg.org";
40 rev = finalAttrs.version;
41 hash = "sha256-QCwwMpBYuMWYqxE2ugPFpG/QtZDW7VsSBYs5EqKYejA=";
44 outputs = [ "out" "man" ];
46 depsBuildBuild = [ pkg-config ];
69 ] ++ lib.optionals (waylandSupport) [
72 ] ++ lib.optionals (x11Support) [
81 mesonBuildType = "release";
84 (lib.mesonBool "werror" false)
85 (lib.mesonEnable "backend-x11" x11Support)
86 (lib.mesonEnable "backend-wayland" waylandSupport)
90 homepage = "https://codeberg.org/dnkl/yambar";
91 description = "Modular status panel for X11 and Wayland";
93 yambar is a lightweight and configurable status panel (bar, for short) for
94 X11 and Wayland, that goes to great lengths to be both CPU and battery
95 efficient - polling is only done when absolutely necessary.
97 It has a number of modules that provide information in the form of tags.
98 For example, the clock module has a date tag that contains the current
101 The modules do not know how to present the information though. This is
102 instead done by particles. And the user, you, decides which particles (and
103 thus how to present the data) to use.
105 Furthermore, each particle can have a decoration - a background color or a
106 graphical underline, for example.
108 There is no support for images or icons. use an icon font (e.g. Font
109 Awesome, or Material Icons) if you want a graphical representation.
111 There are a number of modules and particles builtin. More can be added as
112 plugins. You can even write your own!
114 To summarize: a bar displays information provided by modules, using
115 particles and decorations. How is configured by you.
117 changelog = "https://codeberg.org/dnkl/yambar/releases/tag/${finalAttrs.version}";
118 license = lib.licenses.mit;
119 maintainers = with lib.maintainers; [ AndersonTorres ];
120 platforms = lib.platforms.linux;
121 mainProgram = "yambar";