Merge pull request #181072 from aacebedo/papirus-icon-theme

papirus-icon-theme: changed color argument handling
This commit is contained in:
José Romildo Malaquias 2022-07-12 14:48:30 -03:00 committed by GitHub
commit 6858b222fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, fetchurl, gtk3, pantheon, breeze-icons, gnome-icon-theme, hicolor-icon-theme, papirus-folders, color ? "blue" }:
{ lib, stdenv, fetchFromGitHub, fetchurl, gtk3, pantheon, breeze-icons, gnome-icon-theme, hicolor-icon-theme, papirus-folders, color ? null }:
stdenv.mkDerivation rec {
pname = "papirus-icon-theme";
@ -28,8 +28,8 @@ stdenv.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