@@ -0,0 +1,28 @@
1+{ stdenv, fetchFromGitHub }:
2+
3+stdenv.mkDerivation rec {
4+ name = "xits-math-${version}";
5+ version = "1.108";
6+
7+ src = fetchFromGitHub {
8+ owner = "khaledhosny";
9+ repo = "xits-math";
10+ rev = "v${version}";
11+ sha256 = "08nn676c41a7gmmhrzi8mm0g74z8aiaafjk48pqcwxvjj9av7xjg";
12+ };
13+
14+ phases = [ "unpackPhase" "installPhase" ];
15+
16+ installPhase = ''
17+ mkdir -p $out/share/fonts/opentype
18+ cp *.otf $out/share/fonts/opentype
19+ '';
20+
21+ meta = with stdenv.lib; {
22+ homepage = https://github.com/khaledhosny/xits-math;
23+ description = "OpenType implementation of STIX fonts with math support";
24+ license = licenses.ofl;
25+ platforms = platforms.all;
26+ maintainers = with maintainers; [ abbradar ];
27+ };
28+}