···1+{ stdenv, fetchzip }:
2+3+stdenv.mkDerivation rec {
4+ name = "latinmodern-math-${version}";
5+ version = "1.959";
6+7+ src = fetchzip {
8+ url = "www.gust.org.pl/projects/e-foundry/lm-math/download/latinmodern-math-1959.zip";
9+ sha256 = "15l3lxjciyjmbh0q6jjvzz16ibk4ij79in9fs47qhrfr2wrddpvs";
10+ };
11+12+ installPhase = ''
13+ mkdir -p $out/share/fonts/opentype/
14+ mkdir -p $out/share/doc/${name}/
15+ cp otf/*.otf $out/share/fonts/opentype/
16+ cp doc/*.txt $out/share/doc/${name}/
17+ '';
18+19+ outputHashAlgo = "sha256";
20+ outputHashMode = "recursive";
21+ outputHash = "05k145bxgxjh7i9gx1ahigxfpc2v2vwzsy2mc41jvvg51kjr8fnn";
22+23+ meta = with stdenv.lib; {
24+ description = "The Latin Modern Math (LM Math) font completes the modernization of the Computer Modern family of typefaces designed and programmed by Donald E. Knuth.";
25+ homepage = http://www.gust.org.pl/projects/e-foundry/lm-math;
26+ # "The Latin Modern Math font is licensed under the GUST Font License (GFL),
27+ # which is a free license, legally equivalent to the LaTeX Project Public
28+ # License (LPPL), version 1.3c or later." - GUST website
29+ license = licenses.lppl13c;
30+ maintainers = with maintainers; [ siddharthist ];
31+ platforms = platforms.all;
32+ };
33+}