2023-01-28 05:13:31 +00:00
|
|
|
{ lib, stdenvNoCC, fetchzip }:
|
2017-09-25 20:35:35 +00:00
|
|
|
|
2023-01-28 05:13:31 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "lmmath";
|
2017-09-25 20:35:35 +00:00
|
|
|
version = "1.959";
|
|
|
|
|
2023-01-28 05:13:31 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "http://www.gust.org.pl/projects/e-foundry/lm-math/download/latinmodern-math-1959.zip";
|
|
|
|
hash = "sha256-et/WMhfZZYgP0S7ZmI6MZK5owv9bSoMBXFX6yGSng5Y=";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/share/fonts/opentype/
|
|
|
|
mkdir -p $out/share/doc/latinmodern-math-${version}/
|
|
|
|
cp otf/*.otf $out/share/fonts/opentype/
|
|
|
|
cp doc/*.txt $out/share/doc/latinmodern-math-${version}/
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
2017-09-25 20:35:35 +00:00
|
|
|
|
2019-05-13 01:55:32 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 05:55:05 +00: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";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.gust.org.pl/projects/e-foundry/lm-math";
|
2017-09-25 20:35:35 +00:00
|
|
|
# "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;
|
|
|
|
};
|
2023-01-28 05:13:31 +00:00
|
|
|
}
|