2016-08-30 20:26:06 +02:00
|
|
|
|
{ stdenv, fetchurl, unzip }:
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
name = "roboto-${version}";
|
2017-01-23 22:37:13 +01:00
|
|
|
|
version = "2.136";
|
2016-08-30 20:26:06 +02:00
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
|
url = "https://github.com/google/roboto/releases/download/v${version}/roboto-unhinted.zip";
|
2017-01-23 22:37:13 +01:00
|
|
|
|
sha256 = "0yx3q5wbbl1qkxfx1fglzy3rvms98jr8fcfj70vvvz3r3lppv201";
|
2016-08-30 20:26:06 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
|
mkdir -p $out/share/fonts/truetype
|
2016-12-09 13:16:17 +01:00
|
|
|
|
cp -a *.ttf $out/share/fonts/truetype/
|
2016-08-30 20:26:06 +02: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 13:16:17 +01:00
|
|
|
|
maintainers = [ stdenv.lib.maintainers.romildo ];
|
2016-08-30 20:26:06 +02:00
|
|
|
|
};
|
|
|
|
|
}
|