diff --git a/pkgs/development/libraries/fontconfig/make-fonts-conf.nix b/pkgs/development/libraries/fontconfig/make-fonts-conf.nix index f9cd096f559b..bc231b00e339 100644 --- a/pkgs/development/libraries/fontconfig/make-fonts-conf.nix +++ b/pkgs/development/libraries/fontconfig/make-fonts-conf.nix @@ -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 \