8 , blackPanelIcons ? false
9 , allColorVariants ? false
13 let pname = "Fluent-icon-theme";
15 lib.checkListOfEnum "${pname}: available color variants" [ "standard" "green" "grey" "orange" "pink" "purple" "red" "yellow" "teal" ] colorVariants
17 stdenvNoCC.mkDerivation rec {
19 version = "2024-02-25";
21 src = fetchFromGitHub {
22 owner = "vinceliuice";
25 hash = "sha256-Cadp2+4kBZ74kdD5x0O85FszxvN6/sg6yccxughyX1Q";
28 nativeBuildInputs = [ gtk3 jdupes ];
30 buildInputs = [ hicolor-icon-theme ];
32 # Unnecessary & slow fixup's
34 dontRewriteSymlinks = true;
35 dontDropIconThemeCache = true;
38 patchShebangs install.sh
44 ./install.sh --dest $out/share/icons \
46 ${builtins.toString colorVariants} \
47 ${lib.optionalString allColorVariants "--all"} \
48 ${lib.optionalString roundedIcons "--round"} \
49 ${lib.optionalString blackPanelIcons "--black"}
51 jdupes --quiet --link-soft --recurse $out/share
57 description = "Fluent icon theme for linux desktops";
58 homepage = "https://github.com/vinceliuice/Fluent-icon-theme";
59 license = licenses.gpl3Plus;
60 platforms = platforms.linux;
61 maintainers = with maintainers; [ icy-thought ];