summary refs log tree commit diff
path: root/pkgs/development/libraries/fontconfig/make-fonts-cache.nix
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2018-02-07 18:59:10 +0100
committerBjørn Forsman <bjorn.forsman@gmail.com>2018-02-11 16:07:43 +0100
commit8ea7a302bd8c35c60ddc4cfe62c25503dc316762 (patch)
tree61bcfa8db065c59631c1d82972a883532ba56bc7 /pkgs/development/libraries/fontconfig/make-fonts-cache.nix
parentb101148337cfec8b4f079e001ad8c1e39d2d2a6e (diff)
downloadnixpkgs-8ea7a302bd8c35c60ddc4cfe62c25503dc316762.tar
nixpkgs-8ea7a302bd8c35c60ddc4cfe62c25503dc316762.tar.gz
nixpkgs-8ea7a302bd8c35c60ddc4cfe62c25503dc316762.tar.bz2
nixpkgs-8ea7a302bd8c35c60ddc4cfe62c25503dc316762.tar.lz
nixpkgs-8ea7a302bd8c35c60ddc4cfe62c25503dc316762.tar.xz
nixpkgs-8ea7a302bd8c35c60ddc4cfe62c25503dc316762.tar.zst
nixpkgs-8ea7a302bd8c35c60ddc4cfe62c25503dc316762.zip
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/development/libraries/fontconfig/make-fonts-cache.nix')
-rw-r--r--pkgs/development/libraries/fontconfig/make-fonts-cache.nix4
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 9aa1a905ec9..8b534edd249 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"
   ''