2016-05-11 04:26:05 +01:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "xits-math-${version}";
|
|
|
|
version = "1.108";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "khaledhosny";
|
|
|
|
repo = "xits-math";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "08nn676c41a7gmmhrzi8mm0g74z8aiaafjk48pqcwxvjj9av7xjg";
|
|
|
|
};
|
|
|
|
|
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/fonts/opentype
|
|
|
|
cp *.otf $out/share/fonts/opentype
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-11-23 14:49:18 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|