@@ -0,0 +1,37 @@
1+{ stdenv, fetchzip }:
2+
3+stdenv.mkDerivation rec {
4+ name = "tex-gyre-termes-math-${version}";
5+ version = "1.543";
6+
7+ src = fetchzip {
8+ url = "www.gust.org.pl/projects/e-foundry/tg-math/download/texgyretermes-math-1543.zip";
9+ sha256 = "10ayqfpryfn1l35hy0vwyjzw3a6mfsnzgf78vsnccgk2gz1g9vhz";
10+ };
11+
12+ installPhase = ''
13+ mkdir -p $out/share/fonts/opentype/
14+ mkdir -p $out/share/doc/${name}/
15+ cp -v opentype/*.otf $out/share/fonts/opentype/
16+ cp -v doc/*.txt $out/share/doc/${name}/
17+ '';
18+
19+ outputHashAlgo = "sha256";
20+ outputHashMode = "recursive";
21+ outputHash = "0pa433cgshlypbyrrlp3qq0wg972rngcp37pr8pxdfshgz13q1mm";
22+
23+ meta = with stdenv.lib; {
24+ longDescription = ''
25+ TeX Gyre Termes Math is a math companion for the TeX Gyre Termes family
26+ of fonts (see http://www.gust.org.pl/projects/e-foundry/tex-gyre/) in
27+ the OpenType format.
28+ '';
29+ homepage = http://www.gust.org.pl/projects/e-foundry/tg-math;
30+ # "The TeX Gyre Math fonts are licensed under the GUST Font License (GFL),
31+ # which is a free license, legally equivalent to the LaTeX Project Public
32+ # License (LPPL), version 1.3c or later." - GUST website
33+ license = licenses.lppl13c;
34+ maintainers = with maintainers; [ siddharthist ];
35+ platforms = platforms.all;
36+ };
37+}