mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 20:02:14 +03:00
fontforge-fonttools: init at 20160404
This commit is contained in:
parent
632e81083c
commit
f9add54f28
@ -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
pkgs/tools/misc/fontforge/fontforge-fonttools.nix
Normal file
24
pkgs/tools/misc/fontforge/fontforge-fonttools.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user