Merge pull request #188852 from Icy-Thought/fluent-icon-theme

authored by Sandro and committed by GitHub 5097b7e3 4247b318

+75
+73
pkgs/data/icons/fluent-icon-theme/default.nix
··· 1 + { lib 2 + , stdenvNoCC 3 + , fetchFromGitHub 4 + , gtk3 5 + , hicolor-icon-theme 6 + , jdupes 7 + , roundedIcons ? false 8 + , blackPanelIcons ? false 9 + , colorVariants ? [] 10 + , 11 + }: 12 + let 13 + pname = "Fluent-icon-theme"; 14 + in 15 + lib.checkListOfEnum "${pname}: available color variants" [ 16 + "standard" 17 + "green" 18 + "grey" 19 + "orange" 20 + "pink" 21 + "purple" 22 + "red" 23 + "yellow" 24 + "teal" 25 + "all" 26 + ] colorVariants 27 + 28 + stdenvNoCC.mkDerivation rec { 29 + inherit pname; 30 + version = "2022-02-28"; 31 + 32 + src = fetchFromGitHub { 33 + owner = "vinceliuice"; 34 + repo = pname; 35 + rev = version; 36 + sha256 = "UMj3qF9lhd9kM7J/3RtG3AiWlBontrowfsFOb3yr0tQ="; 37 + }; 38 + 39 + nativeBuildInputs = [ gtk3 jdupes ]; 40 + 41 + buildInputs = [ hicolor-icon-theme ]; 42 + 43 + # Unnecessary & slow fixup's 44 + dontPatchELF = true; 45 + dontRewriteSymlinks = true; 46 + dontDropIconThemeCache = true; 47 + 48 + postPatch = '' 49 + patchShebangs install.sh 50 + ''; 51 + 52 + installPhase = '' 53 + runHook preInstall 54 + 55 + ./install.sh --dest $out/share/icons \ 56 + --name Fluent \ 57 + ${builtins.toString colorVariants} \ 58 + ${lib.optionalString roundedIcons "--round"} \ 59 + ${lib.optionalString blackPanelIcons "--black"} 60 + 61 + jdupes --link-soft --recurse $out/share 62 + 63 + runHook postInstall 64 + ''; 65 + 66 + meta = with lib; { 67 + description = "Fluent icon theme for linux desktops"; 68 + homepage = "https://github.com/vinceliuice/Fluent-icon-theme"; 69 + license = licenses.gpl3Plus; 70 + platforms = platforms.linux; 71 + maintainers = with maintainers; [ icy-thought ]; 72 + }; 73 + }
+2
pkgs/top-level/all-packages.nix
··· 25258 25258 flat-remix-gtk = callPackage ../data/themes/flat-remix-gtk { }; 25259 25259 flat-remix-gnome = callPackage ../data/themes/flat-remix-gnome { }; 25260 25260 25261 + fluent-icon-theme = callPackage ../data/icons/fluent-icon-theme { }; 25262 + 25261 25263 font-awesome_4 = (callPackage ../data/fonts/font-awesome { }).v4; 25262 25264 font-awesome_5 = (callPackage ../data/fonts/font-awesome { }).v5; 25263 25265 font-awesome_6 = (callPackage ../data/fonts/font-awesome { }).v6;