diff options
author | José Romildo Malaquias <malaquias@gmail.com> | 2016-09-01 06:32:39 -0300 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2016-09-02 21:50:42 +0200 |
commit | 67f2a005f6088c985489d1e42faf8478102ef13f (patch) | |
tree | b554e2d5a48cedf616d0028abfd1fbfd92b708bb /pkgs/data/fonts/roboto-slab | |
parent | d47753d38bb38d544ff07ae17b685de946a17f23 (diff) | |
download | nixpkgs-67f2a005f6088c985489d1e42faf8478102ef13f.tar nixpkgs-67f2a005f6088c985489d1e42faf8478102ef13f.tar.gz nixpkgs-67f2a005f6088c985489d1e42faf8478102ef13f.tar.bz2 nixpkgs-67f2a005f6088c985489d1e42faf8478102ef13f.tar.lz nixpkgs-67f2a005f6088c985489d1e42faf8478102ef13f.tar.xz nixpkgs-67f2a005f6088c985489d1e42faf8478102ef13f.tar.zst nixpkgs-67f2a005f6088c985489d1e42faf8478102ef13f.zip |
roboto-slab: init at 2016-01-11
Diffstat (limited to 'pkgs/data/fonts/roboto-slab')
-rw-r--r-- | pkgs/data/fonts/roboto-slab/default.nix | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/pkgs/data/fonts/roboto-slab/default.nix b/pkgs/data/fonts/roboto-slab/default.nix new file mode 100644 index 00000000000..ade9fd2350e --- /dev/null +++ b/pkgs/data/fonts/roboto-slab/default.nix @@ -0,0 +1,60 @@ +{ stdenv, fetchurl }: + +let + # last commit on the directory containing the fonts in the upstream repository + commit = "883939708704a19a295e0652036369d22469e8dc"; +in +stdenv.mkDerivation rec { + name = "roboto-slab-${version}"; + version = "2016-01-11"; + + srcs = [ + (fetchurl { + url = "https://raw.githubusercontent.com/google/fonts/${commit}/apache/robotoslab/RobotoSlab-Regular.ttf"; + sha256 = "04180b5zk2nzll1rrgx8f1i1za66pk6pbrp0iww2xypjqra5zahk"; + }) + (fetchurl { + url = "https://raw.githubusercontent.com/google/fonts/${commit}/apache/robotoslab/RobotoSlab-Bold.ttf"; + sha256 = "0ayl2hf5j33vixxfa7051hzjjxnx8zhag3rr0mmmnxpsn7md44ms"; + }) + (fetchurl { + url = "https://raw.githubusercontent.com/google/fonts/${commit}/apache/robotoslab/RobotoSlab-Light.ttf"; + sha256 = "09riqgj9ixqjdb3mkzbs799cgmnp3ja3d6izlqkhpkfm52sgafqm"; + }) + (fetchurl { + url = "https://raw.githubusercontent.com/google/fonts/${commit}/apache/robotoslab/RobotoSlab-Thin.ttf"; + sha256 = "1hd0m7lxhr261a4s2nb572ari6v53w2yd8yjr9i534iqfl4jcbsf"; + }) + ]; + + sourceRoot = "./"; + + unpackCmd = '' + ttfName=$(basename $(stripHash $curSrc; echo $strippedName)) + cp $curSrc ./$ttfName + ''; + + installPhase = '' + mkdir -p $out/share/fonts/truetype + cp -a *.ttf $out/share/fonts/truetype/ + ''; + + meta = { + homepage = https://www.google.com/fonts/specimen/Roboto+Slab; + description = "Google Roboto Slab fonts"; + longDescription = '' + Roboto has a dual nature. It has a mechanical skeleton and the forms + are largely geometric. At the same time, the font features friendly + and open curves. While some grotesks distort their letterforms to + force a rigid rhythm, Roboto doesn't compromise, allowing letters to + be settled into their natural width. This makes for a more natural + reading rhythm more commonly found in humanist and serif types. + + This is the Roboto Slab family, which can be used alongside the normal + Roboto family and the Roboto Condensed family. + ''; + license = stdenv.lib.licenses.asl20; + maintainers = [ stdenv.lib.maintainers.romildo ]; + platforms = stdenv.lib.platforms.all; + }; +} |