nixpkgs/pkgs/data/fonts/roboto/default.nix

32 lines
899 B
Nix
Raw Normal View History

2016-08-30 18:26:06 +00:00
{ stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
name = "roboto-${version}";
2016-12-09 12:16:17 +00:00
version = "2.135";
2016-08-30 18:26:06 +00:00
src = fetchurl {
url = "https://github.com/google/roboto/releases/download/v${version}/roboto-unhinted.zip";
2016-12-09 12:16:17 +00:00
sha256 = "1ndlh36bcx4mhi58sxfx6ywbib586brh6s5sk3jyji78h1i7j8zr";
2016-08-30 18:26:06 +00:00
};
nativeBuildInputs = [ unzip ];
installPhase = ''
mkdir -p $out/share/fonts/truetype
2016-12-09 12:16:17 +00:00
cp -a *.ttf $out/share/fonts/truetype/
2016-08-30 18:26:06 +00:00
'';
meta = {
homepage = https://github.com/google/roboto;
description = "The Roboto family of fonts";
longDescription = ''
Googles signature family of fonts, the default font on Android and
Chrome OS, and the recommended font for Googles 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
};
}