10 , themeVariants ? [] # default: doder (blue)
11 , colorVariants ? [] # default: all
12 , sizeVariants ? [] # default: standard
17 pname = "vimix-gtk-themes";
20 lib.checkListOfEnum "${pname}: theme variants" [ "doder" "beryl" "ruby" "amethyst" "jade" "grey" "all" ] themeVariants
21 lib.checkListOfEnum "${pname}: color variants" [ "standard" "light" "dark" ] colorVariants
22 lib.checkListOfEnum "${pname}: size variants" [ "standard" "compact" "all" ] sizeVariants
23 lib.checkListOfEnum "${pname}: tweaks" [ "flat" "grey" "mix" "translucent" ] tweaks
25 stdenvNoCC.mkDerivation rec {
27 version = "2024-04-20";
29 src = fetchFromGitHub {
30 owner = "vinceliuice";
33 sha256 = "RbAdoix+UWKiLB+04YiPa0UwzO1fFLy56IG1MipmE+E=";
37 gnome-shell # needed to determine the gnome-shell version
46 propagatedUserEnvPkgs = [
51 patchShebangs install.sh
56 mkdir -p $out/share/themes
57 name= HOME="$TMPDIR" ./install.sh \
58 ${lib.optionalString (themeVariants != []) "--theme " + builtins.toString themeVariants} \
59 ${lib.optionalString (colorVariants != []) "--color " + builtins.toString colorVariants} \
60 ${lib.optionalString (sizeVariants != []) "--size " + builtins.toString sizeVariants} \
61 ${lib.optionalString (tweaks != []) "--tweaks " + builtins.toString tweaks} \
62 --dest $out/share/themes
63 rm $out/share/themes/*/{AUTHORS,LICENSE}
64 jdupes --quiet --link-soft --recurse $out/share
68 passthru.updateScript = gitUpdater { };
71 description = "Flat Material Design theme for GTK based desktop environments";
72 homepage = "https://github.com/vinceliuice/vimix-gtk-themes";
73 license = licenses.gpl3Only;
74 platforms = platforms.unix;
75 maintainers = [ maintainers.romildo ];