From 5d34cb347912b3bb06e6b0407a58344c11e74c18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo?= Date: Mon, 19 Dec 2022 12:24:59 -0300 Subject: [PATCH] fluent-icon-theme: add optional argument for installing all colors - "all" is not a valid color folder version - the installer accepts the option --all for installation of all color folder versions - call jdupes in quiet mode --- pkgs/data/icons/fluent-icon-theme/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/data/icons/fluent-icon-theme/default.nix b/pkgs/data/icons/fluent-icon-theme/default.nix index 3624f4b1b34a..e7553b4b74d4 100644 --- a/pkgs/data/icons/fluent-icon-theme/default.nix +++ b/pkgs/data/icons/fluent-icon-theme/default.nix @@ -6,12 +6,13 @@ , jdupes , roundedIcons ? false , blackPanelIcons ? false +, allColorVariants ? 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 +lib.checkListOfEnum "${pname}: available color variants" [ "standard" "green" "grey" "orange" "pink" "purple" "red" "yellow" "teal" ] colorVariants stdenvNoCC.mkDerivation rec { inherit pname; @@ -43,10 +44,11 @@ stdenvNoCC.mkDerivation rec { ./install.sh --dest $out/share/icons \ --name Fluent \ ${builtins.toString colorVariants} \ + ${lib.optionalString allColorVariants "--all"} \ ${lib.optionalString roundedIcons "--round"} \ ${lib.optionalString blackPanelIcons "--black"} - jdupes --link-soft --recurse $out/share + jdupes --quiet --link-soft --recurse $out/share runHook postInstall '';