1 { stdenv, fetchFromGitHub, cairo, gdk-pixbuf, libconfig, pango, pkg-config
2 , xcbutilwm, alsa-lib, wirelesstools, asciidoc, libxslt, makeWrapper, docbook_xsl
3 , configFile ? null, lib
4 , rev, sha256, version, patches ? []
11 src = fetchFromGitHub {
20 hardeningDisable = [ "format" ];
46 substituteInPlace ./Makefile \
47 --replace "\$(shell git describe)" "${version}" \
48 --replace "a2x" "a2x --no-xmllint"
51 makeFlags = [ "DESTDIR=$(out)" "PREFIX=/" ];
54 mkdir -p $out/share/yabar/examples
55 cp -v examples/*.config $out/share/yabar/examples
57 ${lib.optionalString (configFile != null)
59 wrapProgram "$out/bin/yabar" \
60 --add-flags "-c ${configFile}"
66 description = "A modern and lightweight status bar for X window managers";
67 homepage = "https://github.com/geommer/yabar";
68 license = licenses.mit;
69 platforms = platforms.linux;
70 maintainers = with maintainers; [ ];
71 mainProgram = "yabar";