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