mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
32 lines
757 B
Nix
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 ];
|
|
};
|
|
}
|