mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-06 04:24:28 +03:00
nixos/fontconfig/make-fonts-cache: don't fail to clean the cache
Today I couldn't rebuild because of: [...] /nix/store/lxkrsrlqplz2n75hvpq6vr0gam0gfgrl-font-cursor-misc-1.0.3/lib/X11/fonts/misc: skipping, existing cache is valid: 1 fonts, 0 dirs /var/cache/fontconfig: cleaning cache directory /nix/store/xq3c44ha15pfa5a9mv1z9mni3cfghsna-fc-cache: cleaning cache directory fc-cache: succeeded rm: cannot remove '/nix/store/xq3c44ha15pfa5a9mv1z9mni3cfghsna-fc-cache/CACHEDIR.TAG': No such file or directory builder for '/nix/store/zxfmil40n79vhn5hb4flqc76j99a3l7b-fc-cache.drv' failed with exit code 1
This commit is contained in:
parent
c70ad805d2
commit
a6a29e07bc
@ -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"
|
||||
''
|
||||
|
Loading…
Reference in New Issue
Block a user