xits-math: build from source

This commit is contained in:
Nikolay Amiantov 2016-11-23 17:56:15 +03:00
parent 79b0a9bf39
commit a5f972fa73

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub }:
{ stdenv, fetchFromGitHub, python2Packages, fontforge }:
stdenv.mkDerivation rec {
name = "xits-math-${version}";
@ -11,7 +11,11 @@ stdenv.mkDerivation rec {
sha256 = "08nn676c41a7gmmhrzi8mm0g74z8aiaafjk48pqcwxvjj9av7xjg";
};
phases = [ "unpackPhase" "installPhase" ];
nativeBuildInputs = [ fontforge ] ++ (with python2Packages; [ python fonttools ]);
postPatch = ''
rm *.otf
'';
installPhase = ''
mkdir -p $out/share/fonts/opentype