2019-05-13 02:55:32 +01:00
|
|
|
{ lib, fetchFromGitHub }:
|
2018-12-30 08:54:21 +00:00
|
|
|
|
2019-05-13 02:55:32 +01:00
|
|
|
let
|
2018-12-31 00:05:00 +00:00
|
|
|
version = "3.3.92";
|
2019-05-13 02:55:32 +01:00
|
|
|
in fetchFromGitHub {
|
|
|
|
name = "material-design-icons-${version}";
|
|
|
|
owner = "Templarian";
|
|
|
|
repo = "MaterialDesign-Webfont";
|
|
|
|
rev = "v${version}";
|
2018-12-30 08:54:21 +00:00
|
|
|
|
2019-05-13 02:55:32 +01:00
|
|
|
postFetch = ''
|
|
|
|
tar xf $downloadedFile --strip=1
|
2018-12-30 08:54:21 +00:00
|
|
|
mkdir -p $out/share/fonts/{eot,svg,truetype,woff,woff2}
|
|
|
|
cp fonts/*.eot $out/share/fonts/eot/
|
|
|
|
cp fonts/*.svg $out/share/fonts/svg/
|
|
|
|
cp fonts/*.ttf $out/share/fonts/truetype/
|
|
|
|
cp fonts/*.woff $out/share/fonts/woff/
|
|
|
|
cp fonts/*.woff2 $out/share/fonts/woff2/
|
|
|
|
'';
|
2019-05-13 02:55:32 +01:00
|
|
|
sha256 = "0dbm4qfd0b91yrw3cv4i377pnm98fgj936nk1m5wlx8mx8jahz48";
|
2018-12-30 08:54:21 +00:00
|
|
|
|
2019-05-13 02:55:32 +01:00
|
|
|
meta = with lib; {
|
2018-12-30 08:54:21 +00:00
|
|
|
description = "3200+ 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 = with licenses; [
|
|
|
|
asl20 # for icons from: https://github.com/google/material-design-icons
|
|
|
|
ofl
|
|
|
|
];
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ vlaci ];
|
|
|
|
};
|
|
|
|
}
|