3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #195031 from PlayerNameHere/material-design-icons

material-design-icons: 6.6.96 -> 7.0.96
This commit is contained in:
Artturi 2022-12-07 11:13:52 +02:00 committed by GitHub
commit fe37b0d84f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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,