diff options
author | kekrby <kekrby@gmail.com> | 2022-08-27 10:58:17 +0300 |
---|---|---|
committer | kekrby <kekrby@gmail.com> | 2022-11-03 18:45:29 +0300 |
commit | f938099de1beafc96ddb979537d8e1288e12071c (patch) | |
tree | 0c7cc913dfe52b40f624bb96b920ded3789d2d34 | |
parent | e500665539e3abae0494c4db5d10cccb84de47ba (diff) |
nixos/modules/config/gtk/gtk-icon-cache: do not generate icon caches for files in $out/share/icons
Icon caches should be generated for directories under $out/share/icons, as the comments mention, but it is done for files as well which does not make the build fail but results in files under $out/share/icons being turned into empty directories, see /run/current-system/sw/share/icons/gnome-logo-text.svg as an example.
-rw-r--r-- | nixos/modules/config/gtk/gtk-icon-cache.nix | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/nixos/modules/config/gtk/gtk-icon-cache.nix b/nixos/modules/config/gtk/gtk-icon-cache.nix index 87d5483e36ab9..62f0cc3f090f9 100644 --- a/nixos/modules/config/gtk/gtk-icon-cache.nix +++ b/nixos/modules/config/gtk/gtk-icon-cache.nix @@ -52,10 +52,8 @@ with lib; environment.extraSetup = '' # For each icon theme directory ... - - find $out/share/icons -mindepth 1 -maxdepth 1 -print0 | while read -d $'\0' themedir + find $out/share/icons -exec test -d {} ';' -mindepth 1 -maxdepth 1 -print0 | while read -d $'\0' themedir do - # In order to build the cache, the theme dir should be # writable. When the theme dir is a symbolic link to somewhere # in the nix store it is not writable and it means that only |