installFonts: add warning about webfonts when woff/woff2 file are present

This commit is contained in:
eveeifyeve
2026-03-30 23:31:39 +11:00
parent 28774125af
commit 3a1d1f70ce
@@ -52,6 +52,9 @@ installFonts() {
if [ -n "${webfont-}" ]; then
installFont 'woff' "$webfont/share/fonts/woff"
installFont 'woff2' "$webfont/share/fonts/woff2"
elif [[ "${dontInstallWebfonts-}" != 1 && -n "$(find . \( -iname "*.woff" -o -iname "*.woff2" \) -print)" ]]; then
nixErrorLog "Consider adding \"webfont\" to outputs to install woff/woff2 files."
nixErrorLog "Alternatively, set dontInstallWebfonts to silence this."
exit 1
fi
}