Merge branch 'master' into staging

This commit is contained in:
Vladimír Čunát
2016-09-24 18:54:31 +02:00
235 changed files with 5781 additions and 2834 deletions

View File

@@ -1,15 +1,34 @@
{ stdenv, fetchurl }:
{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "google-fonts";
version = "2015-11-18";
name = "google-fonts-${version}";
version = "2016-08-30";
src = fetchurl {
url = "https://github.com/google/fonts/archive/a26bc2b9f4ad27266c2587dc0355b3066519844a.tar.gz";
sha256 = "1aizwzsxg30mjds1628280bs7ishgsfairnx131654gm51aihw8p";
src = fetchFromGitHub {
owner = "google";
repo = "fonts";
rev = "7a4070f65f2ca85ffdf2d465ff5e095005bae197";
sha256 = "0c20vcsd0jki8drrim68z2ca0cxli4wyh1i1gyg4iyac0a0v8wx3";
};
phases = [ "unpackPhase" "installPhase" ];
outputHashAlgo = "sha256";
outputHashMode = "recursive";
outputHash = "13n2icpdp1z7i14rnfwkjdydhbjgdvyl1crd71hfy6l1j2p3kzyf";
phases = [ "unpackPhase" "patchPhase" "installPhase" ];
patchPhase = ''
# These directories need to be removed because they contain
# older or duplicate versions of fonts also present in other
# directories. This causes non-determinism in the install since
# the installation order of font files with the same name is not
# fixed.
rm -rv ofl/alefhebrew \
ofl/misssaintdelafield \
ofl/mrbedford \
ofl/siamreap \
ofl/terminaldosislight
'';
installPhase = ''
dest=$out/share/fonts/truetype
@@ -18,10 +37,6 @@ stdenv.mkDerivation rec {
chmod -x $dest/*.ttf
'';
outputHashAlgo = "sha256";
outputHashMode = "recursive";
outputHash = "0q03gg0sh2mljlbmhamnxz28d13znh9dzca84p554s7pwg6z4wca";
meta = with stdenv.lib; {
homepage = https://www.google.com/fontsl;
description = "Font files available from Google Font";

View File

@@ -0,0 +1,44 @@
{ stdenv, fetchurl, unzip }:
stdenv.mkDerivation {
name = "lato-2.0";
src = fetchurl {
url = http://www.latofonts.com/download/Lato2OFL.zip;
sha256 = "1f5540g0ja1nx3ddd3ywn77xc81ssrxpq8n3gyb9sabyq2b4xda2";
};
sourceRoot = "Lato2OFL";
buildInputs = [ unzip ];
installPhase = ''
mkdir -p $out/share/fonts/lato
cp *.ttf $out/share/fonts/lato
'';
meta = with stdenv.lib; {
homepage = http://www.latofonts.com/;
description = ''
Sans-serif typeface family designed in Summer 2010 by Łukasz Dziedzic
'';
longDescription = ''
Lato is a sans-serif typeface family designed in the Summer 2010 by
Warsaw-based designer Łukasz Dziedzic ("Lato" means "Summer" in Polish).
In December 2010 the Lato family was published under the open-source Open
Font License by his foundry tyPoland, with support from Google.
In 2013-2014, the family was greatly extended to cover 3000+ glyphs per
style. The Lato 2.010 family now supports 100+ Latin-based languages, 50+
Cyrillic-based languages as well as Greek and IPA phonetics. In the
process, the metrics and kerning of the family have been revised and four
additional weights were created.
'';
license = licenses.ofl;
platforms = platforms.all;
maintainers = with maintainers; [ chris-martin ];
};
}