2023-02-02 18:25:31 +00:00
|
|
|
|
{ lib, stdenvNoCC, fetchzip }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
|
pname = "roboto";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
version = "2.138";
|
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
|
src = fetchzip {
|
|
|
|
|
url = "https://github.com/google/roboto/releases/download/v${version}/roboto-unhinted.zip";
|
|
|
|
|
stripRoot = false;
|
|
|
|
|
hash = "sha256-ue3PUZinBpcYgSho1Zrw1KHl7gc/GlN1GhWFk6g5QXE=";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
|
runHook preInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
|
install -Dm644 *.ttf -t $out/share/fonts/truetype
|
|
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
|
'';
|
2020-04-24 23:36:52 +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 = lib.licenses.asl20;
|
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
|
maintainers = [ lib.maintainers.romildo ];
|
|
|
|
|
};
|
2023-02-02 18:25:31 +00:00
|
|
|
|
}
|