2021-05-30 12:34:36 +07:00
|
|
|
self: super: {
|
2023-01-23 22:08:57 +07:00
|
|
|
material-icons = let version = "4.0.0"; in (super.fetchFromGitHub {
|
2021-05-30 12:34:36 +07:00
|
|
|
name = "material-icons-${version}";
|
|
|
|
|
|
|
|
|
|
owner = "google";
|
|
|
|
|
repo = "material-design-icons";
|
|
|
|
|
rev = version;
|
|
|
|
|
|
|
|
|
|
sha256 = "05g5b8dn8vkjv98lmfgbd92wb5i8cfgc9j5f9ai86xl4r58yx10a";
|
|
|
|
|
|
|
|
|
|
meta = with super.lib; {
|
|
|
|
|
description = "System status icons by Google, featuring material design";
|
|
|
|
|
homepage = "https://material.io/icons";
|
|
|
|
|
license = licenses.asl20;
|
|
|
|
|
platforms = platforms.all;
|
|
|
|
|
maintainers = with maintainers; [ mpcsh ];
|
|
|
|
|
};
|
2023-01-23 22:08:57 +07:00
|
|
|
}).overrideAttrs(o: {
|
|
|
|
|
postFetch = ''
|
|
|
|
|
tar xf $downloadedFile --strip=1
|
|
|
|
|
mkdir -p $out/share/fonts/opentype $out/share/fonts/truetype
|
|
|
|
|
cp font/*.ttf $out/share/fonts/truetype
|
|
|
|
|
cp font/*.otf $out/share/fonts/opentype
|
|
|
|
|
'';
|
|
|
|
|
});
|
2021-05-30 12:34:36 +07:00
|
|
|
}
|