From 133476a8d5818f40267349716a10d573f5c7d3aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo=20Malaquias?= Date: Tue, 12 Jul 2022 18:11:55 -0300 Subject: [PATCH] zafiro-icons: 1.2 -> 1.3 (#181014) --- pkgs/data/icons/zafiro-icons/default.nix | 36 ++++++++++++++++++------ 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/pkgs/data/icons/zafiro-icons/default.nix b/pkgs/data/icons/zafiro-icons/default.nix index d7315e1005cc..d9a62462e97c 100644 --- a/pkgs/data/icons/zafiro-icons/default.nix +++ b/pkgs/data/icons/zafiro-icons/default.nix @@ -1,14 +1,25 @@ -{ lib, stdenvNoCC, fetchFromGitHub, gtk3, breeze-icons, gnome-icon-theme, numix-icon-theme, numix-icon-theme-circle, hicolor-icon-theme, jdupes }: +{ lib +, stdenvNoCC +, fetchFromGitHub +, gtk3 +, breeze-icons +, gnome-icon-theme +, numix-icon-theme +, numix-icon-theme-circle +, hicolor-icon-theme +, jdupes +, gitUpdater +}: stdenvNoCC.mkDerivation rec { pname = "zafiro-icons"; - version = "1.2"; + version = "1.3"; src = fetchFromGitHub { owner = "zayronxio"; repo = pname; rev = version; - sha256 = "sha256-Awc5Sw4X25pXEd4Ob0u6A6Uu0e8FYfwp0fEl90vrsUE="; + sha256 = "sha256-IbFnlUOSADYMNMfvRuRPndxcQbnV12BqMDb9bJRjnoU="; }; nativeBuildInputs = [ @@ -33,19 +44,28 @@ stdenvNoCC.mkDerivation rec { installPhase = '' runHook preInstall - # remove copy file, as it is there clearly by mistake - rm "apps/scalable/android-sdk (copia 1).svg" + mkdir -p $out/share/icons - mkdir -p $out/share/icons/Zafiro-icons - cp -a * $out/share/icons/Zafiro-icons + for theme in Dark Light; do + cp -a $theme $out/share/icons/Zafiro-icons-$theme - gtk-update-icon-cache $out/share/icons/Zafiro-icons + # remove unneeded files + rm $out/share/icons/Zafiro-icons-$theme/_config.yml + + # remove files with non-ascii characters in name + # https://github.com/zayronxio/Zafiro-icons/issues/111 + rm $out/share/icons/Zafiro-icons-$theme/apps/scalable/βTORRENT.svg + + gtk-update-icon-cache $out/share/icons/Zafiro-icons-$theme + done jdupes --link-soft --recurse $out/share runHook postInstall ''; + passthru.updateScript = gitUpdater { inherit pname version; }; + meta = with lib; { description = "Icon pack flat with light colors"; homepage = "https://github.com/zayronxio/Zafiro-icons";