2018-04-03 13:32:02 +02:00
|
|
|
{ stdenv, fetchzip }:
|
2017-09-28 02:16:59 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
variants = {
|
|
|
|
bonum = {
|
|
|
|
displayName = "Bonum";
|
|
|
|
version = "1.005";
|
|
|
|
sha256 = "1b6x7siypyxp1lhq7xxdqafwbn6p2p3xm3jb38q999sv8cgslxz8";
|
|
|
|
outputHash = "1zjaxkzidqmxakh9d61n0by9mi8hrmir45jppjj6hzwhm3rvknff";
|
|
|
|
};
|
|
|
|
pagella = {
|
|
|
|
displayName = "Pagella";
|
|
|
|
version = "1.632";
|
|
|
|
sha256 = "0f4cgq9w0lc1fbcbfqiv19mdhivbsscl13jmb0ln685641ci2sjr";
|
|
|
|
outputHash = "0wz2n1dpx9b8a0qgqy8vl712fxhi87mhcda281xaad62chndwf6k";
|
|
|
|
};
|
|
|
|
schola = {
|
|
|
|
displayName = "Schola";
|
|
|
|
version = "1.533";
|
|
|
|
sha256 = "0caqgkz7gz700h5a1mai0gq8hv7skrgs5nnrs1f7zw1mb9g53ya9";
|
|
|
|
outputHash = "0jk4bpxki95a9lmfj4cgpnv1jwlkh8qixbkf498n1x7hkaz03f5n";
|
|
|
|
};
|
|
|
|
termes = {
|
|
|
|
displayName = "Termes";
|
|
|
|
version = "1.543";
|
|
|
|
sha256 = "10ayqfpryfn1l35hy0vwyjzw3a6mfsnzgf78vsnccgk2gz1g9vhz";
|
|
|
|
outputHash = "0pa433cgshlypbyrrlp3qq0wg972rngcp37pr8pxdfshgz13q1mm";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-05-13 03:55:32 +02:00
|
|
|
mkVariant = variant: {displayName, version, sha256, outputHash}:
|
|
|
|
let dotless_version = builtins.replaceStrings ["."] [""] version; in
|
2018-04-03 13:32:02 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-05-13 03:55:32 +02:00
|
|
|
name = "tex-gyre-${variant}-math-${version}";
|
|
|
|
inherit version;
|
2017-09-28 02:16:59 +02:00
|
|
|
|
2018-04-03 13:32:02 +02:00
|
|
|
src = fetchzip {
|
2019-05-13 03:55:32 +02:00
|
|
|
url = "http://www.gust.org.pl/projects/e-foundry/tg-math/download/texgyre${variant}-math-${dotless_version}.zip";
|
|
|
|
inherit sha256;
|
2018-04-03 13:32:02 +02:00
|
|
|
};
|
2017-09-28 02:16:59 +02:00
|
|
|
|
2018-04-03 13:32:02 +02:00
|
|
|
installPhase = ''
|
2019-05-13 03:55:32 +02:00
|
|
|
install -m444 -Dt $out/share/fonts/opentype opentype/*.otf
|
|
|
|
install -m444 -Dt $out/share/doc/${name} doc/*.txt
|
2018-04-03 13:32:02 +02:00
|
|
|
'';
|
2017-09-28 02:16:59 +02:00
|
|
|
|
2018-04-03 13:32:02 +02:00
|
|
|
outputHashAlgo = "sha256";
|
|
|
|
outputHashMode = "recursive";
|
2019-05-13 03:55:32 +02:00
|
|
|
inherit outputHash;
|
2018-04-03 13:32:02 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
longDescription = ''
|
2019-05-13 03:55:32 +02:00
|
|
|
TeX Gyre ${displayName} Math is a math companion for the TeX Gyre
|
|
|
|
${displayName} family of fonts (see
|
2018-04-03 13:32:02 +02:00
|
|
|
http://www.gust.org.pl/projects/e-foundry/tex-gyre/) in the OpenType format.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.gust.org.pl/projects/e-foundry/tg-math";
|
2018-04-03 13:32:02 +02:00
|
|
|
# "The TeX Gyre Math fonts are 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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
stdenv.lib.mapAttrs mkVariant variants
|