2019-05-13 02:55:32 +01:00
|
|
|
{ lib, fetchFromGitHub }:
|
2017-08-02 07:48:27 +01:00
|
|
|
|
2019-05-13 02:55:32 +01:00
|
|
|
let
|
2017-08-02 07:48:27 +01:00
|
|
|
version = "3.0.1";
|
2019-05-13 02:55:32 +01:00
|
|
|
in fetchFromGitHub {
|
|
|
|
name = "material-icons-${version}";
|
2017-08-02 07:48:27 +01:00
|
|
|
|
2019-05-13 02:55:32 +01:00
|
|
|
owner = "google";
|
|
|
|
repo = "material-design-icons";
|
|
|
|
rev = version;
|
2017-08-02 07:48:27 +01:00
|
|
|
|
2019-05-13 02:55:32 +01:00
|
|
|
postFetch = ''
|
|
|
|
tar xf $downloadedFile --strip=1
|
2017-08-02 07:48:27 +01:00
|
|
|
mkdir -p $out/share/fonts/truetype
|
2019-05-13 02:55:32 +01:00
|
|
|
cp iconfont/*.ttf $out/share/fonts/truetype
|
2017-08-02 07:48:27 +01:00
|
|
|
'';
|
2019-05-13 02:55:32 +01:00
|
|
|
sha256 = "1syy6v941lb8nqxhdf7mfx28v05lwrfnq53r3c1ym13x05l9kchp";
|
2017-08-02 07:48:27 +01:00
|
|
|
|
2019-05-13 02:55:32 +01:00
|
|
|
meta = with lib; {
|
2017-08-02 07:48:27 +01:00
|
|
|
description = "System status icons by Google, featuring material design";
|
|
|
|
homepage = https://material.io/icons;
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ mpcsh ];
|
|
|
|
};
|
|
|
|
}
|