[Nix-dev] Help Wanted: graphviz, fontconfig, and impurities

Rob Vermaas rob.vermaas at gmail.com
Sat May 26 20:46:43 CEST 2012


Hi,

> I have made a nix-expression to build some documentation for a project.
> As part of the documentation generations, it uses graphviz to generate a
> PNG file of a diagram.  graphviz is compiled with fontconfig to generate
> the glyphs that appear in the diagram, and fontconfig searches in
> /etc/fonts to find fonts to render the glyphs.
>
> This is an obvious impurity in the generation of the documentation, but
> honestly I don't have any idea how to go about removing this impurity.
> Has anyone else dealt with derivations using fontconfig and have any tips
> on getting fontconfig to look for fonts elsewhere than /etc/fonts?

I always use (in mkDerivation): FONTCONFIG_FILE = pkgs.texFunctions.fontsConf;

No idea where I got it from, but it works :-)

Cheers,
Rob

-- 
Rob Vermaas

[email] rob.vermaas at gmail.com


More information about the nix-dev mailing list