material-design-icons: 6.6.96 -> 7.0.96

Also fixes the build which was broken due to #173430.
This commit is contained in:
Dixon Sean Low Yan Feng 2022-10-08 21:55:59 +08:00
parent 7b06206fa2
commit b60fb3b293
No known key found for this signature in database
GPG Key ID: A9F388161E9B90C7

View File

@ -1,7 +1,7 @@
{ lib, fetchFromGitHub }:
let
version = "6.6.96";
version = "7.0.96";
in fetchFromGitHub {
name = "material-design-icons-${version}";
owner = "Templarian";
@ -9,17 +9,19 @@ in fetchFromGitHub {
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/
mv $out/fonts/*.eot $out/share/fonts/eot/
mv $out/fonts/*.ttf $out/share/fonts/truetype/
mv $out/fonts/*.woff $out/share/fonts/woff/
mv $out/fonts/*.woff2 $out/share/fonts/woff2/
shopt -s extglob dotglob
rm -rf $out/!(share)
shopt -u extglob dotglob
'';
sha256 = "sha256-rfDb9meTF0Y0kiCQd11SgnntQnw34Ti/IXn35xaPO1M=";
sha256 = "sha256-l60LRXLwLh+7Ls3kMTJ5eDTVpVMcqtshMv/ehIk8fCk=";
meta = with lib; {
description = "4600+ Material Design Icons from the Community";
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,