Skip to content

Commit

Permalink
material-black-colors: init at 0-unstable-2020-12-17
Browse files Browse the repository at this point in the history
  • Loading branch information
D3vil0p3r authored and D3vil0p3r committed Feb 9, 2024
1 parent dc1a821 commit c2e3bdf
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions pkgs/by-name/ma/material-black-colors/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{ lib
, stdenvNoCC
, fetchFromGitHub
, colorVariants ? [] # default: install all icons
}:

let
pname = "material-black-colors";
colorVariantList = [
"MB-Blueberry-Suru-GLOW"
"MB-Cherry-Suru-GLOW"
"MB-Lime-Suru-GLOW"
"MB-Mango-Suru-GLOW"
"MB-Pistachio-Suru-GLOW"
"MB-Plum-Suru-GLOW"
"Material-Black-Blueberry-Numix-FLAT"
"Material-Black-Blueberry-Numix"
"Material-Black-Blueberry-Suru"
"Material-Black-Cherry-Numix-FLAT"
"Material-Black-Cherry-Numix"
"Material-Black-Cherry-Suru"
"Material-Black-Lime-Numix-FLAT"
"Material-Black-Lime-Numix"
"Material-Black-Lime-Suru"
"Material-Black-Mango-Numix-FLAT"
"Material-Black-Mango-Numix"
"Material-Black-Mango-Suru"
"Material-Black-Pistachio-Numix-FLAT"
"Material-Black-Pistachio-Numix"
"Material-Black-Pistachio-Suru"
"Material-Black-Plum-Numix-FLAT"
"Material-Black-Plum-Numix"
"Material-Black-Plum-Suru"
];

in
lib.checkListOfEnum "${pname}: color variants" colorVariantList colorVariants

stdenvNoCC.mkDerivation {
inherit pname;
version = "0-unstable-2020-12-17";

src = fetchFromGitHub {
owner = "rtlewis88";
repo = "rtl88-Themes";
rev = "3864d851aac7f4e76cf23717aee104de234aef74";
hash = "sha256-BUJMd6Ltq16/HqqDbB5VDGIRSzLivXxNYZPT9sd6oTI=";
};

installPhase = ''
runHook preInstall
mkdir -p $out/share/icons
cp -r ${lib.concatStringsSep " " (if colorVariants != [] then colorVariants else colorVariantList)} $out/share/icons/
runHook postInstall
'';

dontFixup = true;

meta = with lib; {
description = "Material Black Colors icons";
homepage = "https://github.com/rtlewis88/rtl88-Themes/tree/material-black-COLORS";
maintainers = with maintainers; [ d3vil0p3r ];
platforms = platforms.all;
license = with licenses; [ gpl3Plus mit ];
};
}

0 comments on commit c2e3bdf

Please sign in to comment.