@@ -0,0 +1,24 @@
1+{stdenv, fontforge, zlib}:
2+stdenv.mkDerivation rec {
3+ name = "fontforge-fonttools-${fontforge.version}";
4+ src = fontforge.src;
5+
6+ buildInputs = [zlib];
7+
8+ setSourceRoot = ''export sourceRoot="$(echo */contrib/fonttools)"'';
9+
10+ installPhase = ''
11+ mkdir -p "$out"/{bin,share/doc/fontforge-fonttools}
12+ for i in *.c; do
13+ gcc "$i" -lz -lm --std=c99 -o "$out"/bin/$(basename "$i" .c)
14+ done
15+ cp README* "$out/share/doc/fontforge-fonttools"
16+ '';
17+
18+ meta = with stdenv.lib; {
19+ description = ''Small font tools shipped in FontForge contrib'';
20+ license = fontforge.meta.license;
21+ maintainers = with maintainers; [ raskin ];
22+ platforms = with platforms; unix;
23+ };
24+}