From 96f44883129e91c903e83fd92e5ede0de69b2791 Mon Sep 17 00:00:00 2001 From: Icy-Thought Date: Sun, 28 Aug 2022 12:15:49 +0200 Subject: fluent-icon-theme: init at 2022-02-28 --- pkgs/data/icons/fluent-icon-theme/default.nix | 73 +++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 pkgs/data/icons/fluent-icon-theme/default.nix (limited to 'pkgs/data/icons/fluent-icon-theme') diff --git a/pkgs/data/icons/fluent-icon-theme/default.nix b/pkgs/data/icons/fluent-icon-theme/default.nix new file mode 100644 index 0000000000000..c3e4f71e6cdcb --- /dev/null +++ b/pkgs/data/icons/fluent-icon-theme/default.nix @@ -0,0 +1,73 @@ +{ lib +, stdenvNoCC +, fetchFromGitHub +, gtk3 +, hicolor-icon-theme +, jdupes +, roundedIcons ? false +, blackPanelIcons ? false +, colorVariants ? [] +, +}: +let + pname = "Fluent-icon-theme"; +in +lib.checkListOfEnum "${pname}: available color variants" [ + "standard" + "green" + "grey" + "orange" + "pink" + "purple" + "red" + "yellow" + "teal" + "all" +] colorVariants + +stdenvNoCC.mkDerivation rec { + inherit pname; + version = "2022-02-28"; + + src = fetchFromGitHub { + owner = "vinceliuice"; + repo = pname; + rev = version; + sha256 = "UMj3qF9lhd9kM7J/3RtG3AiWlBontrowfsFOb3yr0tQ="; + }; + + nativeBuildInputs = [ gtk3 jdupes ]; + + buildInputs = [ hicolor-icon-theme ]; + + # Unnecessary & slow fixup's + dontPatchELF = true; + dontRewriteSymlinks = true; + dontDropIconThemeCache = true; + + postPatch = '' + patchShebangs install.sh + ''; + + installPhase = '' + runHook preInstall + + ./install.sh --dest $out/share/icons \ + --name Fluent \ + ${builtins.toString colorVariants} \ + ${lib.optionalString roundedIcons "--round"} \ + ${lib.optionalString blackPanelIcons "--black"} + + jdupes --link-soft --recurse $out/share + + runHook postInstall + ''; + + meta = with lib; { + description = "Fluent icon theme for linux desktops"; + homepage = "https://github.com/vinceliuice/Fluent-icon-theme"; + license = licenses.gpl3Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ icy-thought ]; + }; +} -- cgit 1.4.1