yabar: support cross-compilation, format

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