in configuration.nix
I can use fonts.fonts
to specify fonts. But
how do I do this in a derivation?
Is the technique used by libreoffice expression enough for you needs?
Nix:
fontsConf = makeFontsConf {
fontDirectories = [ dejavu_fonts (…) ];
};
Build phase:
cp "${fontsConf}" fonts.conf
export FONTCONFIG_FILE="$PWD/fonts.conf"
1 Like
Perfect! Thank you very much.