diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2016-09-24 18:54:31 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2016-09-24 18:54:31 +0200 |
commit | fffc7638cda106c4864e0b986ff498b4f939a847 (patch) | |
tree | 12b83c1bc7d39a65df8dbff46390c8465347f202 /pkgs/data | |
parent | d2965a7d85f7ce3f5ce265ca8dc3b73feaae226f (diff) | |
parent | e2a9617185321c38482cab343e5d4a6a182b7ce9 (diff) | |
download | nixlib-fffc7638cda106c4864e0b986ff498b4f939a847.tar nixlib-fffc7638cda106c4864e0b986ff498b4f939a847.tar.gz nixlib-fffc7638cda106c4864e0b986ff498b4f939a847.tar.bz2 nixlib-fffc7638cda106c4864e0b986ff498b4f939a847.tar.lz nixlib-fffc7638cda106c4864e0b986ff498b4f939a847.tar.xz nixlib-fffc7638cda106c4864e0b986ff498b4f939a847.tar.zst nixlib-fffc7638cda106c4864e0b986ff498b4f939a847.zip |
Merge branch 'master' into staging
Diffstat (limited to 'pkgs/data')
-rw-r--r-- | pkgs/data/fonts/google-fonts/default.nix | 37 | ||||
-rw-r--r-- | pkgs/data/fonts/lato/default.nix | 44 |
2 files changed, 70 insertions, 11 deletions
diff --git a/pkgs/data/fonts/google-fonts/default.nix b/pkgs/data/fonts/google-fonts/default.nix index 0e41cd4e6b71..62e99079d177 100644 --- a/pkgs/data/fonts/google-fonts/default.nix +++ b/pkgs/data/fonts/google-fonts/default.nix @@ -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"; diff --git a/pkgs/data/fonts/lato/default.nix b/pkgs/data/fonts/lato/default.nix new file mode 100644 index 000000000000..8d1111090aab --- /dev/null +++ b/pkgs/data/fonts/lato/default.nix @@ -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 ]; + }; +} |