From 74ff0f244c1a3524cb0e310f7c1833c4997edd81 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Sat, 23 May 2026 18:29:25 -0400 Subject: [PATCH] nix build: FONTCONFIG behavior for pkgs/xo-indentlog.nix --- pkgs/xo-indentlog.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/xo-indentlog.nix b/pkgs/xo-indentlog.nix index 298dfe9f..76606737 100644 --- a/pkgs/xo-indentlog.nix +++ b/pkgs/xo-indentlog.nix @@ -4,7 +4,7 @@ python3Packages, - doxygen, sphinx, graphviz, + doxygen, sphinx, graphviz, fontconfig, xo-cmake, @@ -28,6 +28,7 @@ stdenv.mkDerivation (finalattrs: inherit buildExamples; inherit doCheck; + postBuild = lib.optionalString buildDocs '' cmake --build . -- docs ''; @@ -39,9 +40,12 @@ stdenv.mkDerivation (finalattrs: doxygen sphinx graphviz + fontconfig python3Packages.sphinx-rtd-theme python3Packages.breathe python3Packages.sphinxcontrib-ditaa python3Packages.sphinxcontrib-plantuml ]; + } // lib.optionalAttrs buildDocs { + FONTCONFIG_FILE = "${fontconfig.out}/etc/fonts/fonts.conf"; })