1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 05:00:16 +00:00

makeFontsConf: check for share/fonts/ in fontDirectories

Fixes #3515.
This commit is contained in:
Vladimír Čunát 2014-08-10 11:47:07 +02:00
parent 8db0b55f60
commit e26188938c

View file

@ -6,6 +6,14 @@ runCommand "fonts.conf"
inherit fontDirectories;
}
''
for fd in $fontDirectories;
do
if [ ! -d "$fd/share/fonts" ]; then
echo "ERROR: '$fd/share/fonts/' doesn't exist"
false
fi
done
xsltproc --stringparam fontDirectories "$fontDirectories" \
--stringparam fontconfig "${fontconfig}" \
--path ${fontconfig}/share/xml/fontconfig \