@@ -1,57 +1,23 @@
1−{stdenv, fetchurl, unzip}:
1+{stdenv, fetchurl, unzip, raleway}:
3−stdenv.mkDerivation rec {
3+let
4− baseName = "league-of-moveable-type";
6− name="${baseName}-${version}";
9− url = "https://www.theleagueofmoveabletype.com/league-gothic/download";
10− sha256 = "0nbwsbwhs375kbis3lpk98dw05mnh455vghjg1cq0j2fsj1zb99b";
11− name = "league-gothic.zip";
15− url = "https://www.theleagueofmoveabletype.com/fanwood/download";
16− sha256 = "1023da7hik8ci8s7rcy6lh4h9p6igx1kz9y1a2cv6sizbp819w8g";
17− name = "fanwood.zip";
21− url = "https://www.theleagueofmoveabletype.com/linden-hill/download";
22− sha256 = "0rm92rz9kki91l5wcn149mdpwq1mfql4dv6d159hv534qmg3z3ks";
23− name = "linden-hill.zip";
27− url = "https://www.theleagueofmoveabletype.com/raleway/download";
28− sha256 = "0f6anym0adq0ankqbdqx4lyzbysx824zqdj1x60gafyisjx48y87";
29− name = "raleway.zip";
32− (fetchurl {
5+ # TO UPDATE:
33− url = "https://www.theleagueofmoveabletype.com/prociono/download";
6+ # ./update.sh > ./fonts.nix
34− sha256 = "11hamjry5lx3cykzpjq7kwlp6h9cjqy470fmn9f2pi954b46xkdy";
7+ # we use the extended version of raleway (same license).
35− name = "prociono.zip";
8+ fonts = [raleway]
36− })
9+ ++ map fetchurl (builtins.filter (f: f.name != "raleway.zip") (import ./fonts.nix));
39− url = "https://www.theleagueofmoveabletype.com/goudy-bookletter-1911/download";
40− sha256 = "01qganq5n7rgqw546lf45kj8j7ymfjr00i2bwp3qw7ibifg9pn4n";
41− name = "goudy-bookletter-1911.zip";
45− url = "https://www.theleagueofmoveabletype.com/sorts-mill-goudy/download";
46− sha256 = "11aywj5lzapk04k2yzi1g96acbbm48x902ka0v9cfwwqpn6js9ra";
47− name = "sorts-mill-goudy.zip";
12+stdenv.mkDerivation rec {
51−];
14+ baseName = "league-of-moveable-type";
15+ version = "2016-10-15";
16+ name="${baseName}-${version}";
53− buildInputs = [unzip];
18+ srcs = fonts;
20+ buildInputs = [ unzip ];
55 sourceRoot = ".";
21 sourceRoot = ".";
57 installPhase = ''
23 installPhase = ''
@@ -59,7 +25,6 @@ stdenv.mkDerivation rec {
59 cp */*.otf $out/share/fonts/truetype
25 cp */*.otf $out/share/fonts/truetype
64 description = "Font Collection by The League of Moveable Type";
29 description = "Font Collection by The League of Moveable Type";
@@ -74,6 +39,6 @@ stdenv.mkDerivation rec {
74 license = stdenv.lib.licenses.ofl;
39 license = stdenv.lib.licenses.ofl;
76 platforms = stdenv.lib.platforms.all;
41 platforms = stdenv.lib.platforms.all;
77− maintainers = with stdenv.lib.maintainers; [ bergey ];
42+ maintainers = with stdenv.lib.maintainers; [ bergey profpatsch ];