Merge pull request #49762 from symphorien/fccache

nixos/fontconfig/make-fonts-cache: don't fail to clean the cache
This commit is contained in:
Linus Heckemann 2018-11-14 13:54:01 +01:00 committed by GitHub
commit 3ef226158e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@
runCommand "fc-cache"
rec {
buildInputs = [ fontconfig.bin ];
preferLocalBuild = true;
passAsFile = [ "fontDirs" ];
fontDirs = ''
<!-- Font directories -->
@ -27,5 +28,5 @@ runCommand "fc-cache"
# This is not a cache dir in the normal sense -- it won't be automatically
# recreated.
rm "$out/CACHEDIR.TAG"
rm -f "$out/CACHEDIR.TAG"
''