diff options
Diffstat (limited to 'pkgs/data/icons/papirus-icon-theme/default.nix')
-rw-r--r-- | pkgs/data/icons/papirus-icon-theme/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/data/icons/papirus-icon-theme/default.nix b/pkgs/data/icons/papirus-icon-theme/default.nix index 911758c3071ca..4980f36312c1e 100644 --- a/pkgs/data/icons/papirus-icon-theme/default.nix +++ b/pkgs/data/icons/papirus-icon-theme/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenvNoCC, fetchFromGitHub, fetchurl, gtk3, pantheon, breeze-icons, gnome-icon-theme, hicolor-icon-theme, papirus-folders, color ? "blue" }: +{ lib, stdenvNoCC, fetchFromGitHub, fetchurl, gtk3, pantheon, breeze-icons, gnome-icon-theme, hicolor-icon-theme, papirus-folders, color ? null }: stdenvNoCC.mkDerivation rec { pname = "papirus-icon-theme"; @@ -28,8 +28,8 @@ stdenvNoCC.mkDerivation rec { mv {,e}Papirus* $out/share/icons for theme in $out/share/icons/*; do - ${papirus-folders}/bin/papirus-folders -t $theme -o -C ${color} - gtk-update-icon-cache $theme + ${lib.optionalString (color != null) "${papirus-folders}/bin/papirus-folders -t $theme -o -C ${color}"} + gtk-update-icon-cache --force $theme done runHook postInstall |