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}"
65 #passthru.tests = { inherit (nixosTests) yabar; }; # nixos currently uses yabar-unstable
68 description = "Modern and lightweight status bar for X window managers";
69 homepage = "https://github.com/geommer/yabar";
70 license = licenses.mit;
71 platforms = platforms.linux;
73 mainProgram = "yabar";