make-fonts-cache: remove CACHEDIR.TAG file from Nix store
A CACHEDIR.TAG file indicates that the contents can be automatically
re-generated. This is not really true for Nix store paths. (Well _Nix_
can recreate them, but that's different.)
I noticed this issue as I was restoring full system backup that "for
some reason" always missed /nix/store/*-fc-cache (found by `nix-store
--verify --repair`). Turns out I was excluding caches from my backup...
commit8ea7a302bd8c35c60ddc4cfe62c25503dc316762
authorBjørn Forsman <bjorn.forsman@gmail.com>
dateWed 7 Feb 2018, 18:59 (9 years ago)
parentb101148
pkgs/development/libraries/fontconfig/make-fonts-cache.nix+4
@@ -24,4 +24,8 @@ runCommand "fc-cache"
2424
2525 mkdir -p $out
2626 fc-cache -sv
27+
28+ # This is not a cache dir in the normal sense -- it won't be automatically
29+ # recreated.
30+ rm "$out/CACHEDIR.TAG"
2731 ''