-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fontforge-fonttools: init at 20160404
- Loading branch information
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters