mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
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...
This commit is contained in:
parent
b101148337
commit
8ea7a302bd
1 changed files with 4 additions and 0 deletions
|
@ -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"
|
||||
''
|
||||
|
|
Loading…
Reference in a new issue