2017-08-11 04:53:39 +00:00
|
|
|
|
{ stdenv, fetchzip }:
|
2016-08-30 18:26:06 +00:00
|
|
|
|
|
2017-08-11 04:53:39 +00:00
|
|
|
|
let
|
2017-01-23 21:37:13 +00:00
|
|
|
|
version = "2.136";
|
2017-08-11 04:53:39 +00:00
|
|
|
|
in fetchzip rec {
|
|
|
|
|
name = "roboto-${version}";
|
2016-08-30 18:26:06 +00:00
|
|
|
|
|
2017-08-11 04:53:39 +00:00
|
|
|
|
url = "https://github.com/google/roboto/releases/download/v${version}/roboto-unhinted.zip";
|
2016-08-30 18:26:06 +00:00
|
|
|
|
|
2017-08-11 04:53:39 +00:00
|
|
|
|
postFetch = ''
|
|
|
|
|
mkdir -p $out/share/fonts
|
|
|
|
|
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
2016-08-30 18:26:06 +00:00
|
|
|
|
'';
|
|
|
|
|
|
2017-08-11 04:53:39 +00:00
|
|
|
|
sha256 = "02fanxx2hg0kvxl693rc0fkbrbr2i8b14qmpparkrwmv0j35wnd7";
|
|
|
|
|
|
2016-08-30 18:26:06 +00:00
|
|
|
|
meta = {
|
|
|
|
|
homepage = https://github.com/google/roboto;
|
|
|
|
|
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.
|
|
|
|
|
'';
|
|
|
|
|
license = stdenv.lib.licenses.asl20;
|
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
2016-12-09 12:16:17 +00:00
|
|
|
|
maintainers = [ stdenv.lib.maintainers.romildo ];
|
2016-08-30 18:26:06 +00:00
|
|
|
|
};
|
|
|
|
|
}
|