nixpkgs/pkgs/data/fonts/xits-math/default.nix

32 lines
791 B
Nix
Raw Normal View History

2016-11-23 06:56:15 -08:00
{ stdenv, fetchFromGitHub, python2Packages, fontforge }:
2016-05-10 20:26:05 -07:00
stdenv.mkDerivation rec {
name = "xits-math-${version}";
2019-06-02 11:55:22 -07:00
version = "1.200";
2016-05-10 20:26:05 -07:00
src = fetchFromGitHub {
2019-06-02 11:55:22 -07:00
owner = "alif-type";
repo = "xits";
2016-05-10 20:26:05 -07:00
rev = "v${version}";
2019-06-02 11:55:22 -07:00
sha256 = "0s1qqqg3zv9k4wqn1vkx0z895fjccg96n58syc1d5f2wba9kyfcm";
2016-05-10 20:26:05 -07:00
};
2016-11-23 06:56:15 -08:00
nativeBuildInputs = [ fontforge ] ++ (with python2Packages; [ python fonttools ]);
postPatch = ''
rm *.otf
'';
2016-05-10 20:26:05 -07:00
installPhase = ''
install -m444 -Dt $out/share/fonts/opentype *.otf
2016-05-10 20:26:05 -07:00
'';
meta = with stdenv.lib; {
homepage = https://github.com/khaledhosny/xits-math;
2016-05-10 20:26:05 -07:00
description = "OpenType implementation of STIX fonts with math support";
license = licenses.ofl;
platforms = platforms.all;
maintainers = with maintainers; [ abbradar ];
};
}