2019-11-09 14:10:15 +00:00
|
|
|
{ stdenv, fetchFromGitHub, python3Packages}:
|
2016-05-11 03:26:05 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "xits-math";
|
2020-07-04 12:19:30 +00:00
|
|
|
version = "1.302";
|
2016-05-11 03:26:05 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-06-02 18:55:22 +00:00
|
|
|
owner = "alif-type";
|
|
|
|
repo = "xits";
|
2016-05-11 03:26:05 +00:00
|
|
|
rev = "v${version}";
|
2020-07-04 12:19:30 +00:00
|
|
|
sha256 = "1x3r505dylz9rz8dj98h5n9d0zixyxmvvhnjnms9qxdrz9bxy9g1";
|
2016-05-11 03:26:05 +00:00
|
|
|
};
|
|
|
|
|
2019-11-09 14:10:15 +00:00
|
|
|
nativeBuildInputs = (with python3Packages; [ python fonttools fontforge ]);
|
2016-11-23 14:56:15 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
rm *.otf
|
|
|
|
'';
|
2016-05-11 03:26:05 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2019-05-13 03:54:44 +00:00
|
|
|
install -m444 -Dt $out/share/fonts/opentype *.otf
|
2016-05-11 03:26:05 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-11-09 08:58:34 +00:00
|
|
|
homepage = "https://github.com/alif-type/xits";
|
2016-05-11 03:26:05 +00:00
|
|
|
description = "OpenType implementation of STIX fonts with math support";
|
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|