evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / ma / material-black-colors / package.nix
blob3fff194ddd996521526ac6a36f28a03291d72a5b
1 { lib
2 , stdenvNoCC
3 , fetchFromGitHub
4 , colorVariants ? [] # default: install all icons
5 }:
7 let
8   pname = "material-black-colors";
9   colorVariantList = [
10     "MB-Blueberry-Suru-GLOW"
11     "MB-Cherry-Suru-GLOW"
12     "MB-Lime-Suru-GLOW"
13     "MB-Mango-Suru-GLOW"
14     "MB-Pistachio-Suru-GLOW"
15     "MB-Plum-Suru-GLOW"
16     "Material-Black-Blueberry-Numix-FLAT"
17     "Material-Black-Blueberry-Numix"
18     "Material-Black-Blueberry-Suru"
19     "Material-Black-Cherry-Numix-FLAT"
20     "Material-Black-Cherry-Numix"
21     "Material-Black-Cherry-Suru"
22     "Material-Black-Lime-Numix-FLAT"
23     "Material-Black-Lime-Numix"
24     "Material-Black-Lime-Suru"
25     "Material-Black-Mango-Numix-FLAT"
26     "Material-Black-Mango-Numix"
27     "Material-Black-Mango-Suru"
28     "Material-Black-Pistachio-Numix-FLAT"
29     "Material-Black-Pistachio-Numix"
30     "Material-Black-Pistachio-Suru"
31     "Material-Black-Plum-Numix-FLAT"
32     "Material-Black-Plum-Numix"
33     "Material-Black-Plum-Suru"
34   ];
37 lib.checkListOfEnum "${pname}: color variants" colorVariantList colorVariants
39 stdenvNoCC.mkDerivation {
40   inherit pname;
41   version = "0-unstable-2020-12-17";
43   src = fetchFromGitHub {
44     owner = "rtlewis88";
45     repo = "rtl88-Themes";
46     rev = "3864d851aac7f4e76cf23717aee104de234aef74";
47     hash = "sha256-BUJMd6Ltq16/HqqDbB5VDGIRSzLivXxNYZPT9sd6oTI=";
48   };
50   installPhase = ''
51     runHook preInstall
52     mkdir -p $out/share/icons
53     cp -r ${lib.concatStringsSep " " (if colorVariants != [] then colorVariants else colorVariantList)} $out/share/icons/
54     runHook postInstall
55   '';
57   dontFixup = true;
59   meta = with lib; {
60     description = "Material Black Colors icons";
61     homepage = "https://github.com/rtlewis88/rtl88-Themes/tree/material-black-COLORS";
62     maintainers = with maintainers; [ d3vil0p3r ];
63     platforms = platforms.all;
64     license = with licenses; [ gpl3Plus mit ];
65   };