biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / data / icons / reversal-icon-theme / default.nix
bloba9e4dcba89b902ae9fb18400c13d709467c7643d
1 { lib
2 , stdenvNoCC
3 , fetchFromGitHub
4 , gtk3
5 , jdupes
6 , adwaita-icon-theme
7 , hicolor-icon-theme
8 , numix-icon-theme-circle
9 , gitUpdater
10 , allColorVariants ? false
11 , colorVariants ? []
14 let
15   pname = "reversal-icon-theme";
17 lib.checkListOfEnum "${pname}: color variants" [ "-blue" "-red" "-pink" "-purple" "-green" "-orange" "-brown" "-grey" "-black" "-cyan" ] colorVariants
19 stdenvNoCC.mkDerivation rec {
20   inherit pname;
21   version = "unstable-2023-05-13";
23   src = fetchFromGitHub {
24     owner = "yeyushengfan258";
25     repo = pname;
26     rev = "bdae2ea365731b25a869fc2c8c6a1fb849eaf5b2";
27     hash = "sha256-Cd+1ggyS+Y2Sk8w5zifc4IFOwbFrbjL6S6awES/W0EE=";
28   };
30   nativeBuildInputs = [
31     gtk3
32     jdupes
33   ];
35   propagatedBuildInputs = [
36     adwaita-icon-theme
37     hicolor-icon-theme
38     numix-icon-theme-circle
39   ];
41   dontDropIconThemeCache = true;
43   # These fixup steps are slow and unnecessary for this package.
44   # Package may install many small files.
45   dontPatchELF = true;
46   dontRewriteSymlinks = true;
48   postPatch = ''
49     patchShebangs install.sh
50   '';
52   installPhase = ''
53     runHook preInstall
55     mkdir -p $out/share/icons
57     name= ./install.sh \
58       ${if allColorVariants then "-a" else builtins.toString colorVariants} \
59       -d $out/share/icons
61     rm $out/share/icons/*/{AUTHORS,COPYING}
63     jdupes --quiet --link-soft --recurse $out/share
65     runHook postInstall
66   '';
68   passthru.updateScript = gitUpdater { };
70   meta = with lib; {
71     description = "Colorful Design Rectangle icon theme";
72     homepage = "https://github.com/yeyushengfan258/Reversal-icon-theme";
73     license = licenses.gpl3Plus;
74     platforms = platforms.all;
75     maintainers = with maintainers; [ romildo ];
76   };