mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
makeFontsConf: fixup to accept older font packages
They contain fonts on the silly path lib/X11/fonts/
This commit is contained in:
parent
26ec124da8
commit
77487fe661
@ -8,8 +8,8 @@ runCommand "fonts.conf"
|
||||
''
|
||||
for fd in $fontDirectories;
|
||||
do
|
||||
if [ ! -d "$fd/share/fonts" ]; then
|
||||
echo "ERROR: '$fd/share/fonts/' doesn't exist"
|
||||
if [ ! -d "$fd/share/fonts" ] && [ ! -d "$fd/lib/X11/fonts" ]; then
|
||||
echo "ERROR: '$fd/' contains neither 'share/fonts/' nor 'lib/X11/fonts/'"
|
||||
false
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user