3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/fonts/xits-math/default.nix
2019-11-13 16:41:03 +01:00

32 lines
757 B
Nix

{ stdenv, fetchFromGitHub, python3Packages}:
stdenv.mkDerivation rec {
pname = "xits-math";
version = "1.301";
src = fetchFromGitHub {
owner = "alif-type";
repo = "xits";
rev = "v${version}";
sha256 = "043g0gnjc7wn1szvrs0rc1vvrq1qmhqh45b0y2kwrlxsgprpv8ll";
};
nativeBuildInputs = (with python3Packages; [ python fonttools fontforge ]);
postPatch = ''
rm *.otf
'';
installPhase = ''
install -m444 -Dt $out/share/fonts/opentype *.otf
'';
meta = with stdenv.lib; {
homepage = "https://github.com/alif-type/xits";
description = "OpenType implementation of STIX fonts with math support";
license = licenses.ofl;
platforms = platforms.all;
maintainers = with maintainers; [ abbradar ];
};
}