1 { lib, stdenv, fetchzip }:
8 sha256 = "1b6x7siypyxp1lhq7xxdqafwbn6p2p3xm3jb38q999sv8cgslxz8";
9 outputHash = "1zjaxkzidqmxakh9d61n0by9mi8hrmir45jppjj6hzwhm3rvknff";
12 displayName = "Pagella";
14 sha256 = "0f4cgq9w0lc1fbcbfqiv19mdhivbsscl13jmb0ln685641ci2sjr";
15 outputHash = "0wz2n1dpx9b8a0qgqy8vl712fxhi87mhcda281xaad62chndwf6k";
18 displayName = "Schola";
20 sha256 = "0caqgkz7gz700h5a1mai0gq8hv7skrgs5nnrs1f7zw1mb9g53ya9";
21 outputHash = "0jk4bpxki95a9lmfj4cgpnv1jwlkh8qixbkf498n1x7hkaz03f5n";
24 displayName = "Termes";
26 sha256 = "10ayqfpryfn1l35hy0vwyjzw3a6mfsnzgf78vsnccgk2gz1g9vhz";
27 outputHash = "0pa433cgshlypbyrrlp3qq0wg972rngcp37pr8pxdfshgz13q1mm";
31 mkVariant = variant: {displayName, version, sha256, outputHash}:
32 let dotless_version = builtins.replaceStrings ["."] [""] version; in
33 stdenv.mkDerivation rec {
34 name = "tex-gyre-${variant}-math-${version}";
38 url = "http://www.gust.org.pl/projects/e-foundry/tg-math/download/texgyre${variant}-math-${dotless_version}.zip";
43 install -m444 -Dt $out/share/fonts/opentype opentype/*.otf
44 install -m444 -Dt $out/share/doc/${name} doc/*.txt
47 outputHashAlgo = "sha256";
48 outputHashMode = "recursive";
53 TeX Gyre ${displayName} Math is a math companion for the TeX Gyre
54 ${displayName} family of fonts (see
55 http://www.gust.org.pl/projects/e-foundry/tex-gyre/) in the OpenType format.
57 homepage = "http://www.gust.org.pl/projects/e-foundry/tg-math";
58 # "The TeX Gyre Math fonts are licensed under the GUST Font License (GFL),
59 # which is a free license, legally equivalent to the LaTeX Project Public
60 # License (LPPL), version 1.3c or later." - GUST website
61 license = licenses.lppl13c;
62 maintainers = with maintainers; [ siddharthist ];
63 platforms = platforms.all;
67 lib.mapAttrs mkVariant variants