depot/third_party/nixpkgs/pkgs/data/fonts/material-design-icons/default.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

39 lines
1.1 KiB
Nix

{ lib, fetchFromGitHub, stdenvNoCC }:
stdenvNoCC.mkDerivation rec {
pname = "material-design-icons";
version = "7.2.96";
src = fetchFromGitHub {
owner = "Templarian";
repo = "MaterialDesign-Webfont";
rev = "v${version}";
sha256 = "sha256-4r/l7QkD04OR74FZBH0l81hDY5TexEIIJnECYFKsGxM=";
sparseCheckout = [ "fonts" ];
};
installPhase = ''
runHook preInstall
mkdir -p "$out/share/fonts/"{eot,truetype,woff,woff2}
cp fonts/*.eot "$out/share/fonts/eot/"
cp fonts/*.ttf "$out/share/fonts/truetype/"
cp fonts/*.woff "$out/share/fonts/woff/"
cp fonts/*.woff2 "$out/share/fonts/woff2/"
runHook postInstall
'';
meta = with lib; {
description = "7000+ Material Design Icons from the Community";
longDescription = ''
Material Design Icons' growing icon collection allows designers and
developers targeting various platforms to download icons in the format,
color and size they need for any project.
'';
homepage = "https://materialdesignicons.com";
license = licenses.asl20;
platforms = platforms.all;
maintainers = with maintainers; [ vlaci PlayerNameHere ];
};
}