3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/fontforge/fontforge-fonttools.nix

25 lines
687 B
Nix
Raw Normal View History

2017-03-23 14:10:34 +00:00
{stdenv, fontforge, zlib}:
stdenv.mkDerivation rec {
name = "fontforge-fonttools-${fontforge.version}";
src = fontforge.src;
buildInputs = [zlib];
setSourceRoot = ''export sourceRoot="$(echo */contrib/fonttools)"'';
installPhase = ''
mkdir -p "$out"/{bin,share/doc/fontforge-fonttools}
for i in *.c; do
gcc "$i" -lz -lm --std=c99 -o "$out"/bin/$(basename "$i" .c)
done
cp README* "$out/share/doc/fontforge-fonttools"
'';
meta = with stdenv.lib; {
description = ''Small font tools shipped in FontForge contrib'';
license = fontforge.meta.license;
maintainers = with maintainers; [ raskin ];
platforms = with platforms; unix;
};
}