blob: 77bc9f172c6f3b6e4be8254cbc2003a8e4f3f5bf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{ lib, stdenv, fetchurl, freetype, fontconfig, libunwind, libtool, flex, bison }:
stdenv.mkDerivation {
pname = "ttf-mkfontdir";
version = "3.0.9-6";
src = fetchurl {
url = "http://mirror.fsf.org/trisquel/pool/main/t/ttmkfdir/ttmkfdir_3.0.9.orig.tar.gz";
sha256 = "0n6bmmndmp4c1myisvv7cby559gzgvwsw4rfw065a3f92m87jxiq";
};
# all the patches up from ttmkfdir-3.0.9/Makefile should be reviewed by someone
# who knows more about C/C++ ..
patches =
[ (fetchurl {
url = "http://mirror.fsf.org/trisquel/pool/main/t/ttmkfdir/ttmkfdir_3.0.9-6.diff.gz";
sha256 = "141kxaf2by8nf87hqyszaxi0n7nnmswr1nh2i5r5bsvxxmaj9633";
})
./cstring.patch # also fixes some other compilation issues (freetype includes)
];
preInstall = ''
mkdir -p $out; makeFlags="DESTDIR=$out BINDIR=/bin"
'';
buildInputs = [freetype fontconfig libunwind libtool flex bison];
meta = {
description = "Create fonts.dir for TTF font directory";
platforms = lib.platforms.linux;
};
}
|