installFonts: error about woff files being present (#504978)

This commit is contained in:
Yohann Boniface
2026-05-07 22:05:07 +00:00
committed by GitHub
@@ -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
}