data/fonts: make derivations fixed-outputs (group of fontforge compiled fonts)

This commit is contained in:
Volth
2017-09-18 21:44:00 +00:00
parent 38c14d7132
commit 04dacfbf1c
6 changed files with 40 additions and 1 deletions
+8
View File
@@ -15,6 +15,10 @@ stdenv.mkDerivation rec {
postPatch = ''
rm *.otf
substituteInPlace tools/postprocess.py --replace \
'font = ttLib.TTFont(sys.argv[1])' \
'font = ttLib.TTFont(sys.argv[1], recalcTimestamp=False)'
'';
installPhase = ''
@@ -22,6 +26,10 @@ stdenv.mkDerivation rec {
cp *.otf $out/share/fonts/opentype
'';
outputHashAlgo = "sha256";
outputHashMode = "recursive";
outputHash = "00xycmb9ka67j5s66nkng53y8q6362igisxz04zb58r2717jk50m";
meta = with stdenv.lib; {
homepage = https://github.com/khaledhosny/xits-math;
description = "OpenType implementation of STIX fonts with math support";