git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #49762 from symphorien/fccache

nixos/fontconfig/make-fonts-cache: don't fail to clean the cache

commit3ef226158e46d0a6eadefaa869d7fd52b942bcd1 authorLinus Heckemann <git@sphalerite.org> dateWed 14 Nov 2018, 13:54 (8 years ago) parentf597a88a6a29e0
1 file changed+2−1
pkgs/development/libraries/fontconfig/make-fonts-cache.nix+2−1
pkgs/development/libraries/fontconfig/make-fonts-cache.nix+2−1
@@ -3,6 +3,7 @@
33runCommand "fc-cache"
44 rec {
55 buildInputs = [ fontconfig.bin ];
6+ preferLocalBuild = true;
67 passAsFile = [ "fontDirs" ];
78 fontDirs = ''
89 <!-- Font directories -->
@@ -27,5 +28,5 @@ runCommand "fc-cache"
2728
2829 # This is not a cache dir in the normal sense -- it won't be automatically
2930 # recreated.
30− rm "$out/CACHEDIR.TAG"
31+ rm -f "$out/CACHEDIR.TAG"
3132 ''