Skip to content

Commit

Permalink
make-fonts-cache: remove CACHEDIR.TAG file from Nix store
Browse files Browse the repository at this point in the history
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...

(cherry picked from commit 8ea7a30)
  • Loading branch information
bjornfor committed Feb 12, 2018
1 parent 20e23ce commit 57707ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/development/libraries/fontconfig/make-fonts-cache.nix
Expand Up @@ -24,4 +24,8 @@ runCommand "fc-cache"
mkdir -p $out
fc-cache -sv
# This is not a cache dir in the normal sense -- it won't be automatically
# recreated.
rm "$out/CACHEDIR.TAG"
''

0 comments on commit 57707ea

Please sign in to comment.