mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
34 lines
1.0 KiB
Nix
34 lines
1.0 KiB
Nix
{ lib, fetchFromGitHub }:
|
|
|
|
let
|
|
version = "6.6.96";
|
|
in fetchFromGitHub {
|
|
name = "material-design-icons-${version}";
|
|
owner = "Templarian";
|
|
repo = "MaterialDesign-Webfont";
|
|
rev = "v${version}";
|
|
|
|
postFetch = ''
|
|
tar xf $downloadedFile --strip=1
|
|
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/
|
|
'';
|
|
sha256 = "sha256-rfDb9meTF0Y0kiCQd11SgnntQnw34Ti/IXn35xaPO1M=";
|
|
|
|
meta = with lib; {
|
|
description = "4600+ 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 ];
|
|
};
|
|
}
|