yabar: support cross-compilation, format

+21 -4
+21 -4
pkgs/applications/window-managers/yabar/build.nix
··· 19 19 20 20 hardeningDisable = [ "format" ]; 21 21 22 - nativeBuildInputs = [ pkg-config ]; 22 + strictDeps = true; 23 + depsBuildBuild = [ 24 + pkg-config 25 + ]; 26 + nativeBuildInputs = [ 27 + pkg-config 28 + asciidoc 29 + docbook_xsl 30 + libxslt 31 + makeWrapper 32 + libconfig 33 + pango 34 + ]; 23 35 buildInputs = [ 24 - cairo gdk-pixbuf libconfig pango xcbutilwm docbook_xsl 25 - alsa-lib wirelesstools asciidoc libxslt makeWrapper 36 + cairo 37 + gdk-pixbuf 38 + libconfig 39 + pango 40 + xcbutilwm 41 + alsa-lib 42 + wirelesstools 26 43 ]; 27 44 28 45 postPatch = '' 29 46 substituteInPlace ./Makefile \ 30 47 --replace "\$(shell git describe)" "${version}" \ 31 - --replace "a2x" "${asciidoc}/bin/a2x --no-xmllint" 48 + --replace "a2x" "a2x --no-xmllint" 32 49 ''; 33 50 34 51 makeFlags = [ "DESTDIR=$(out)" "PREFIX=/" ];