9 stdenv.mkDerivation rec {
14 url = "mirror://sourceforge/ttf2pt1/ttf2pt1-${version}.tgz";
15 sha256 = "1l718n4k4widx49xz7qrj4mybzb8q67kp2jw7f47604ips4654mf";
19 find -type f | xargs sed -i 's@/usr/bin/perl@${perl}/bin/perl@'
21 sed -e 's/chown/true/' \
23 -e 's@^CFLAGS_FT =.*@CFLAGS_FT=-DUSE_FREETYPE -I${freetype.dev}/include/freetype2@' \
24 -i scripts/{inst_dir,inst_file} Makefile
25 makeFlags="INSTDIR=$out OWNER=`id -u`"
28 buildInputs = [ freetype ];
29 nativeBuildInputs = [ perl ];
31 patches = ./gentoo-makefile.patch; # also contains the freetype patch
34 description = "True Type to Postscript Type 3 converter, fpdf";
35 homepage = "https://ttf2pt1.sourceforge.net/index.html";
37 platforms = lib.platforms.linux;