Merge pull request #49762 from symphorien/fccache
nixos/fontconfig/make-fonts-cache: don't fail to clean the cache
This commit is contained in:
commit
3ef226158e
|
@ -3,6 +3,7 @@
|
||||||
runCommand "fc-cache"
|
runCommand "fc-cache"
|
||||||
rec {
|
rec {
|
||||||
buildInputs = [ fontconfig.bin ];
|
buildInputs = [ fontconfig.bin ];
|
||||||
|
preferLocalBuild = true;
|
||||||
passAsFile = [ "fontDirs" ];
|
passAsFile = [ "fontDirs" ];
|
||||||
fontDirs = ''
|
fontDirs = ''
|
||||||
<!-- Font directories -->
|
<!-- Font directories -->
|
||||||
|
@ -27,5 +28,5 @@ runCommand "fc-cache"
|
||||||
|
|
||||||
# This is not a cache dir in the normal sense -- it won't be automatically
|
# This is not a cache dir in the normal sense -- it won't be automatically
|
||||||
# recreated.
|
# recreated.
|
||||||
rm "$out/CACHEDIR.TAG"
|
rm -f "$out/CACHEDIR.TAG"
|
||||||
''
|
''
|
||||||
|
|
Loading…
Reference in New Issue