diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2018-02-07 18:59:10 +0100 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2018-02-11 16:07:43 +0100 |
commit | 8ea7a302bd8c35c60ddc4cfe62c25503dc316762 (patch) | |
tree | 61bcfa8db065c59631c1d82972a883532ba56bc7 /pkgs | |
parent | b101148337cfec8b4f079e001ad8c1e39d2d2a6e (diff) |
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...
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/libraries/fontconfig/make-fonts-cache.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/libraries/fontconfig/make-fonts-cache.nix b/pkgs/development/libraries/fontconfig/make-fonts-cache.nix index 9aa1a905ec98e..8b534edd2498a 100644 --- a/pkgs/development/libraries/fontconfig/make-fonts-cache.nix +++ b/pkgs/development/libraries/fontconfig/make-fonts-cache.nix @@ -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" '' |