teamspeak5_client: 5.0.0-beta77 -> 6.0.0-beta2; teamspeak refactors (#377748)
[NixPkgs.git] / pkgs / data / icons / zafiro-icons / default.nix
blob44858afeb9e34204365188096bcd05dd81162a16
2   lib,
3   stdenvNoCC,
4   fetchFromGitHub,
5   gtk3,
6   breeze-icons,
7   gnome-icon-theme,
8   numix-icon-theme,
9   numix-icon-theme-circle,
10   hicolor-icon-theme,
11   jdupes,
12   gitUpdater,
15 stdenvNoCC.mkDerivation rec {
16   pname = "zafiro-icons";
17   version = "1.3";
19   src = fetchFromGitHub {
20     owner = "zayronxio";
21     repo = pname;
22     rev = version;
23     sha256 = "sha256-IbFnlUOSADYMNMfvRuRPndxcQbnV12BqMDb9bJRjnoU=";
24   };
26   nativeBuildInputs = [
27     gtk3
28     jdupes
29   ];
31   propagatedBuildInputs = [
32     breeze-icons
33     gnome-icon-theme
34     numix-icon-theme
35     numix-icon-theme-circle
36     hicolor-icon-theme
37     # still missing parent icon themes: Surfn
38   ];
40   dontDropIconThemeCache = true;
42   dontPatchELF = true;
43   dontRewriteSymlinks = true;
45   installPhase = ''
46     runHook preInstall
48     mkdir -p $out/share/icons
50     for theme in Dark Light; do
51       cp -a $theme $out/share/icons/Zafiro-icons-$theme
53       # remove unneeded files
54       rm $out/share/icons/Zafiro-icons-$theme/_config.yml
56       # remove files with non-ascii characters in name
57       # https://github.com/zayronxio/Zafiro-icons/issues/111
58       rm $out/share/icons/Zafiro-icons-$theme/apps/scalable/βTORRENT.svg
60       gtk-update-icon-cache $out/share/icons/Zafiro-icons-$theme
61     done
63     jdupes --link-soft --recurse $out/share
65     runHook postInstall
66   '';
68   passthru.updateScript = gitUpdater { };
70   meta = with lib; {
71     description = "Icon pack flat with light colors";
72     homepage = "https://github.com/zayronxio/Zafiro-icons";
73     license = with licenses; [ gpl3 ];
74     platforms = platforms.linux;
75     maintainers = with maintainers; [ romildo ];
76   };