mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
papirus-icon-theme: changed color argument handling
This commit is contained in:
parent
a6a7eb74a6
commit
64c1e5af0f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user