2003-11-06 16:24:19 +01:00
|
|
|
buildinputs="$freetype $expat $x11 $ed"
|
2004-03-09 11:59:55 +01:00
|
|
|
. $stdenv/setup
|
2003-11-06 16:24:19 +01:00
|
|
|
|
|
|
|
# Fontconfig generates a bad `fonts.conf' file is the timezone is not known
|
|
|
|
# (because it calls `date').
|
|
|
|
export TZ=UTC
|
|
|
|
|
2004-03-09 11:59:55 +01:00
|
|
|
tar xvfz $src
|
|
|
|
cd fontconfig-*
|
2003-11-06 16:24:19 +01:00
|
|
|
./configure --prefix=$out --with-confdir=$out/etc/fonts \
|
2004-03-09 11:59:55 +01:00
|
|
|
--with-expat-includes=$expat/include --with-expat-lib=$expat/lib
|
|
|
|
make
|
|
|
|
make install
|
2003-11-06 16:24:19 +01:00
|
|
|
|
2004-03-09 11:59:55 +01:00
|
|
|
mkdir $out/nix-support
|
|
|
|
echo "$freetype" > $out/nix-support/propagated-build-inputs
|