2019-05-13 02:55:32 +01:00
|
|
|
|
{ lib, fetchzip }:
|
2016-08-30 19:26:06 +01:00
|
|
|
|
|
2017-08-11 05:53:39 +01:00
|
|
|
|
let
|
2018-01-12 20:32:04 +00:00
|
|
|
|
version = "2.138";
|
2019-08-13 22:52:01 +01:00
|
|
|
|
in fetchzip {
|
2017-08-11 05:53:39 +01:00
|
|
|
|
name = "roboto-${version}";
|
2016-08-30 19:26:06 +01:00
|
|
|
|
|
2017-08-11 05:53:39 +01:00
|
|
|
|
url = "https://github.com/google/roboto/releases/download/v${version}/roboto-unhinted.zip";
|
2016-08-30 19:26:06 +01:00
|
|
|
|
|
2017-08-11 05:53:39 +01:00
|
|
|
|
postFetch = ''
|
|
|
|
|
mkdir -p $out/share/fonts
|
2018-01-12 20:32:04 +00:00
|
|
|
|
unzip -j $downloadedFile \*.ttf -x __MACOSX/\* -d $out/share/fonts/truetype
|
2016-08-30 19:26:06 +01:00
|
|
|
|
'';
|
|
|
|
|
|
2018-01-12 20:32:04 +00:00
|
|
|
|
sha256 = "1s3c48wwvvwd3p4w3hfkri5v2c54j2bdxmd3bjv54klc5mrlh6z3";
|
2017-08-11 05:53:39 +01:00
|
|
|
|
|
2016-08-30 19:26:06 +01:00
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
|
homepage = "https://github.com/google/roboto";
|
2016-08-30 19:26:06 +01:00
|
|
|
|
description = "The Roboto family of fonts";
|
|
|
|
|
longDescription = ''
|
|
|
|
|
Google’s signature family of fonts, the default font on Android and
|
|
|
|
|
Chrome OS, and the recommended font for Google’s visual language,
|
|
|
|
|
Material Design.
|
|
|
|
|
'';
|
2019-05-13 02:55:32 +01:00
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
|
maintainers = [ lib.maintainers.romildo ];
|
2016-08-30 19:26:06 +01:00
|
|
|
|
};
|
|
|
|
|
}
|