9 , colorVariants ? [] # default: all
10 , themeVariants ? [] # default: blue
14 pname = "matcha-gtk-theme";
17 lib.checkListOfEnum "${pname}: color variants" [ "standard" "light" "dark" ] colorVariants
18 lib.checkListOfEnum "${pname}: theme variants" [ "aliz" "azul" "sea" "pueril" "all" ] themeVariants
20 stdenvNoCC.mkDerivation rec {
22 version = "2024-05-01";
24 src = fetchFromGitHub {
25 owner = "vinceliuice";
28 sha256 = "trQwRZ/JKIS8TcRIg0eL5GmB/yymDwqqNued0ddRuqU=";
40 propagatedUserEnvPkgs = [
45 patchShebangs install.sh
51 mkdir -p $out/share/themes
54 ${lib.optionalString (colorVariants != []) "--color " + builtins.toString colorVariants} \
55 ${lib.optionalString (themeVariants != []) "--theme " + builtins.toString themeVariants} \
56 --dest $out/share/themes
58 mkdir -p $out/share/doc/${pname}
59 cp -a src/extra/firefox $out/share/doc/${pname}
61 jdupes --quiet --link-soft --recurse $out/share
66 passthru.updateScript = gitUpdater { };
69 description = "Stylish flat Design theme for GTK based desktop environments";
70 homepage = "https://vinceliuice.github.io/theme-matcha";
71 license = licenses.gpl3Only;
72 platforms = platforms.unix;
73 maintainers = [ maintainers.romildo ];