blob: e02ee967b67749c9bc8a4ea91b468063563004f3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
{stdenv, fetchurl, unzip, raleway}:
let
# TO UPDATE:
# ./update.sh > ./fonts.nix
# we use the extended version of raleway (same license).
fonts = [raleway]
++ map fetchurl (builtins.filter (f: f.name != "raleway.zip") (import ./fonts.nix));
in
stdenv.mkDerivation rec {
baseName = "league-of-moveable-type";
version = "2016-10-15";
name="${baseName}-${version}";
srcs = fonts;
buildInputs = [ unzip ];
sourceRoot = ".";
installPhase = ''
mkdir -p $out/share/fonts/opentype
cp */*.otf $out/share/fonts/opentype
# for Raleway, where the fonts are already in /share/…
cp */share/fonts/opentype/*.otf $out/share/fonts/opentype
'';
meta = {
description = "Font Collection by The League of Moveable Type";
longDescription = '' We're done with the tired old fontstacks of
yesteryear. The web is no longer limited, and now it's time to raise
our standards. Since 2009, The League has given only the most
well-made, free & open-source, @font-face ready fonts.
'';
homepage = "https://www.theleagueofmoveabletype.com/";
license = stdenv.lib.licenses.ofl;
platforms = stdenv.lib.platforms.all;
maintainers = with stdenv.lib.maintainers; [ bergey profpatsch ];
};
}
|