Merge pull request #263785 from romildo/upd.reversal-icon-theme

reversal-icon-theme: init at unstable-2023-05-13

authored by José Romildo Malaquias and committed by GitHub e2c20286 b8218af2

+81
+77
pkgs/data/icons/reversal-icon-theme/default.nix
···
··· 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 ? [] 12 + }: 13 + 14 + let 15 + pname = "reversal-icon-theme"; 16 + in 17 + lib.checkListOfEnum "${pname}: color variants" [ "-blue" "-red" "-pink" "-purple" "-green" "-orange" "-brown" "-grey" "-black" "-cyan" ] colorVariants 18 + 19 + stdenvNoCC.mkDerivation rec { 20 + inherit pname; 21 + version = "unstable-2023-05-13"; 22 + 23 + src = fetchFromGitHub { 24 + owner = "yeyushengfan258"; 25 + repo = pname; 26 + rev = "bdae2ea365731b25a869fc2c8c6a1fb849eaf5b2"; 27 + hash = "sha256-Cd+1ggyS+Y2Sk8w5zifc4IFOwbFrbjL6S6awES/W0EE="; 28 + }; 29 + 30 + nativeBuildInputs = [ 31 + gtk3 32 + jdupes 33 + ]; 34 + 35 + propagatedBuildInputs = [ 36 + adwaita-icon-theme 37 + hicolor-icon-theme 38 + numix-icon-theme-circle 39 + ]; 40 + 41 + dontDropIconThemeCache = true; 42 + 43 + # These fixup steps are slow and unnecessary for this package. 44 + # Package may install many small files. 45 + dontPatchELF = true; 46 + dontRewriteSymlinks = true; 47 + 48 + postPatch = '' 49 + patchShebangs install.sh 50 + ''; 51 + 52 + installPhase = '' 53 + runHook preInstall 54 + 55 + mkdir -p $out/share/icons 56 + 57 + name= ./install.sh \ 58 + ${if allColorVariants then "-a" else builtins.toString colorVariants} \ 59 + -d $out/share/icons 60 + 61 + rm $out/share/icons/*/{AUTHORS,COPYING} 62 + 63 + jdupes --quiet --link-soft --recurse $out/share 64 + 65 + runHook postInstall 66 + ''; 67 + 68 + passthru.updateScript = gitUpdater { }; 69 + 70 + meta = with lib; { 71 + description = "A 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 + }; 77 + }
+4
pkgs/top-level/all-packages.nix
··· 29986 29987 recursive = callPackage ../data/fonts/recursive { }; 29988 29989 rubik = callPackage ../data/fonts/rubik { }; 29990 29991 rhodium-libre = callPackage ../data/fonts/rhodium-libre { };
··· 29986 29987 recursive = callPackage ../data/fonts/recursive { }; 29988 29989 + reversal-icon-theme = callPackage ../data/icons/reversal-icon-theme { 29990 + inherit (gnome) adwaita-icon-theme; 29991 + }; 29992 + 29993 rubik = callPackage ../data/fonts/rubik { }; 29994 29995 rhodium-libre = callPackage ../data/fonts/rhodium-libre { };