2019-05-13 03:55:32 +02:00
|
|
|
{ lib, fetchzip }:
|
2017-09-25 22:35:35 +02:00
|
|
|
|
2019-05-13 03:55:32 +02:00
|
|
|
let
|
2017-09-25 22:35:35 +02:00
|
|
|
version = "1.959";
|
2019-05-13 03:55:32 +02:00
|
|
|
in fetchzip rec {
|
2020-03-18 03:32:56 +01:00
|
|
|
name = "lmmath-${version}";
|
2017-09-25 22:35:35 +02:00
|
|
|
|
2019-05-13 03:55:32 +02:00
|
|
|
url = "http://www.gust.org.pl/projects/e-foundry/lm-math/download/latinmodern-math-1959.zip";
|
|
|
|
postFetch = ''
|
2017-09-25 22:35:35 +02:00
|
|
|
mkdir -p $out/share/fonts/opentype/
|
2020-03-18 03:32:56 +01:00
|
|
|
mkdir -p $out/share/doc/latinmodern-math-${version}/
|
2020-03-18 08:21:33 +01:00
|
|
|
unzip -j $downloadedFile "*/otf/*.otf" -d $out/share/fonts/opentype/
|
2020-03-18 03:32:56 +01:00
|
|
|
unzip -j $downloadedFile "*/doc/*.txt" -d $out/share/doc/latinmodern-math-${version}/
|
2017-09-25 22:35:35 +02:00
|
|
|
'';
|
2019-05-13 03:55:32 +02:00
|
|
|
sha256 = "05k145bxgxjh7i9gx1ahigxfpc2v2vwzsy2mc41jvvg51kjr8fnn";
|
2017-09-25 22:35:35 +02:00
|
|
|
|
2019-05-13 03:55:32 +02:00
|
|
|
meta = with lib; {
|
2017-09-25 22:35:35 +02:00
|
|
|
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.";
|
|
|
|
homepage = http://www.gust.org.pl/projects/e-foundry/lm-math;
|
|
|
|
# "The Latin Modern Math font is licensed under the GUST Font License (GFL),
|
|
|
|
# which is a free license, legally equivalent to the LaTeX Project Public
|
|
|
|
# License (LPPL), version 1.3c or later." - GUST website
|
|
|
|
license = licenses.lppl13c;
|
|
|
|
maintainers = with maintainers; [ siddharthist ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|