Merge pull request #159408 from romildo/upd.vimix-icon-theme

vimix-icon-theme: allow selection of color variants

authored by Renaud and committed by GitHub e2aa7ace 9679d273

+23 -4
+23 -4
pkgs/data/icons/vimix-icon-theme/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, gtk3, hicolor-icon-theme, jdupes }: 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , gtk3 5 + , hicolor-icon-theme 6 + , jdupes 7 + , colorVariants ? [] # default: all 8 + }: 9 + 10 + let 11 + pname = "vimix-icon-theme"; 12 + 13 + in 14 + lib.checkListOfEnum "${pname}: color variants" [ "standard" "Amethyst" "Beryl" "Doder" "Ruby" "Black" "White" ] colorVariants 2 15 3 16 stdenv.mkDerivation rec { 4 - pname = "vimix-icon-theme"; 17 + inherit pname; 5 18 version = "2021-11-09"; 6 19 7 20 src = fetchFromGitHub { ··· 23 36 24 37 installPhase = '' 25 38 runHook preInstall 39 + 26 40 patchShebangs install.sh 27 - ./install.sh -a -d $out/share/icons 41 + 42 + ./install.sh \ 43 + ${if colorVariants != [] then builtins.toString colorVariants else "-a"} \ 44 + -d $out/share/icons 45 + 28 46 # replace duplicate files with symlinks 29 - jdupes -l -r $out/share/icons 47 + jdupes -L -r $out/share/icons 48 + 30 49 runHook postInstall 31 50 ''; 32 51