From cb4cd5d7f03a12cc53b1ce5bd83572786a5f6ab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo=20Malaquias?= Date: Tue, 30 Aug 2016 15:26:06 -0300 Subject: [PATCH] roboto: init at 2.134 (#18127) --- pkgs/data/fonts/roboto/default.nix | 31 ++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/data/fonts/roboto/default.nix diff --git a/pkgs/data/fonts/roboto/default.nix b/pkgs/data/fonts/roboto/default.nix new file mode 100644 index 000000000000..711cca5b1641 --- /dev/null +++ b/pkgs/data/fonts/roboto/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchurl, unzip }: + +stdenv.mkDerivation rec { + name = "roboto-${version}"; + version = "2.134"; + + src = fetchurl { + url = "https://github.com/google/roboto/releases/download/v${version}/roboto-unhinted.zip"; + sha256 = "1l033xc2n4754gwakxshh5235cnrnzy7q6zsp5zghn8ib0gdp5rb"; + }; + + nativeBuildInputs = [ unzip ]; + + installPhase = '' + mkdir -p $out/share/fonts/truetype + cp -a * $out/share/fonts/truetype/ + ''; + + 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; + maintainers = [ stdenv.lib.maintainers.romildo ]; + platforms = stdenv.lib.platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8c90e9e5ae27..fd6154ebde81 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12106,6 +12106,8 @@ in r5rs = callPackage ../data/documentation/rnrs/r5rs.nix { }; + roboto = callPackage ../data/fonts/roboto { }; + hasklig = callPackage ../data/fonts/hasklig {}; sound-theme-freedesktop = callPackage ../data/misc/sound-theme-freedesktop { };