10 themeVariants ? [ ], # default: blue
11 colorVariants ? [ ], # default: all
12 sizeVariants ? [ ], # default: standard
17 pname = "fluent-gtk-theme";
19 lib.checkListOfEnum "${pname}: theme variants"
34 "${pname}: color variants"
42 "${pname}: size variants"
60 stdenvNoCC.mkDerivation
63 version = "2024-06-12";
65 src = fetchFromGitHub {
66 owner = "vinceliuice";
67 repo = "fluent-gtk-theme";
68 rev = finalAttrs.version;
69 hash = "sha256-ONhW68UUrFiv5hxkR7XI8U/5+qM+tYLIS2OM05pqJi0=";
77 buildInputs = [ gnome-themes-extra ];
79 propagatedUserEnvPkgs = [ gtk-engine-murrine ];
82 patchShebangs install.sh
88 name= HOME="$TMPDIR" ./install.sh \
89 ${lib.optionalString (themeVariants != [ ]) "--theme " + builtins.toString themeVariants} \
90 ${lib.optionalString (colorVariants != [ ]) "--color " + builtins.toString colorVariants} \
91 ${lib.optionalString (sizeVariants != [ ]) "--size " + builtins.toString sizeVariants} \
92 ${lib.optionalString (tweaks != [ ]) "--tweaks " + builtins.toString tweaks} \
94 --dest $out/share/themes
96 jdupes --quiet --link-soft --recurse $out/share
101 passthru.updateScript = gitUpdater { };
104 description = "Fluent design gtk theme";
105 changelog = "https://github.com/vinceliuice/Fluent-gtk-theme/releases/tag/${finalAttrs.version}";
106 homepage = "https://github.com/vinceliuice/Fluent-gtk-theme";
107 license = lib.licenses.gpl3Only;
108 platforms = lib.platforms.unix;
109 maintainers = with lib.maintainers; [
110 luftmensch-luftmensch