···11+{ stdenv, fetchzip }:
22+33+stdenv.mkDerivation rec {
44+ name = "latinmodern-math-${version}";
55+ version = "1.959";
66+77+ src = fetchzip {
88+ url = "www.gust.org.pl/projects/e-foundry/lm-math/download/latinmodern-math-1959.zip";
99+ sha256 = "15l3lxjciyjmbh0q6jjvzz16ibk4ij79in9fs47qhrfr2wrddpvs";
1010+ };
1111+1212+ installPhase = ''
1313+ mkdir -p $out/share/fonts/opentype/
1414+ mkdir -p $out/share/doc/${name}/
1515+ cp otf/*.otf $out/share/fonts/opentype/
1616+ cp doc/*.txt $out/share/doc/${name}/
1717+ '';
1818+1919+ outputHashAlgo = "sha256";
2020+ outputHashMode = "recursive";
2121+ outputHash = "05k145bxgxjh7i9gx1ahigxfpc2v2vwzsy2mc41jvvg51kjr8fnn";
2222+2323+ meta = with stdenv.lib; {
2424+ 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.";
2525+ homepage = http://www.gust.org.pl/projects/e-foundry/lm-math;
2626+ # "The Latin Modern Math font is licensed under the GUST Font License (GFL),
2727+ # which is a free license, legally equivalent to the LaTeX Project Public
2828+ # License (LPPL), version 1.3c or later." - GUST website
2929+ license = licenses.lppl13c;
3030+ maintainers = with maintainers; [ siddharthist ];
3131+ platforms = platforms.all;
3232+ };
3333+}