nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 31 lines 755 B view raw
1{ lib, stdenv, fetchFromGitHub, python3Packages}: 2 3stdenv.mkDerivation rec { 4 pname = "xits-math"; 5 version = "1.302"; 6 7 src = fetchFromGitHub { 8 owner = "alif-type"; 9 repo = "xits"; 10 rev = "v${version}"; 11 sha256 = "1x3r505dylz9rz8dj98h5n9d0zixyxmvvhnjnms9qxdrz9bxy9g1"; 12 }; 13 14 nativeBuildInputs = (with python3Packages; [ python fonttools fontforge ]); 15 16 postPatch = '' 17 rm *.otf 18 ''; 19 20 installPhase = '' 21 install -m444 -Dt $out/share/fonts/opentype *.otf 22 ''; 23 24 meta = with lib; { 25 homepage = "https://github.com/alif-type/xits"; 26 description = "OpenType implementation of STIX fonts with math support"; 27 license = licenses.ofl; 28 platforms = platforms.all; 29 maintainers = with maintainers; [ abbradar ]; 30 }; 31}