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