Skip to content

Commit

Permalink
fontforge-fonttools: init at 20160404
Browse files Browse the repository at this point in the history
  • Loading branch information
7c6f434c committed Mar 23, 2017
1 parent 632e810 commit f9add54
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/tools/misc/fontforge/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
}

24 changes: 24 additions & 0 deletions pkgs/tools/misc/fontforge/fontforge-fonttools.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit f9add54

Please sign in to comment.