fontforge-fonttools: init at 20160404

This commit is contained in:
Michael Raskin 2017-03-23 15:10:34 +01:00
parent 632e81083c
commit f9add54f28
3 changed files with 27 additions and 0 deletions

View File

@ -57,6 +57,7 @@ stdenv.mkDerivation rec {
description = "A font editor";
homepage = http://fontforge.github.io;
platforms = stdenv.lib.platforms.all;
license = stdenv.lib.licenses.bsd3;
};
}

View File

@ -0,0 +1,24 @@
{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;
};
}

View File

@ -1818,6 +1818,8 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
};
fontforge-fonttools = callPackage ../tools/misc/fontforge/fontforge-fonttools.nix {};
fontmatrix = callPackage ../applications/graphics/fontmatrix {};
foremost = callPackage ../tools/system/foremost { };