mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 19:03:28 +00:00
8a2a4aee40
if no timezone is set). svn path=/nixpkgs/trunk/; revision=367
20 lines
543 B
Bash
Executable File
20 lines
543 B
Bash
Executable File
#! /bin/sh
|
|
|
|
envpkgs="$freetype $expat"
|
|
. $stdenv/setup || exit 1
|
|
export PATH=$ed/bin:$PATH
|
|
|
|
# Fontconfig generates a bad `fonts.conf' file is the timezone is not known
|
|
# (because it calls `date').
|
|
export TZ=UTC
|
|
|
|
tar xvfz $src || exit 1
|
|
cd fcpackage*/fontconfig || exit 1
|
|
./configure --prefix=$out --with-confdir=$out/etc/fonts \
|
|
--x-includes=/usr/X11/include --x-libraries=/usr/X11/lib \
|
|
--with-expat-includes=$expat/include --with-expat-lib=$expat/lib || exit 1
|
|
make || exit 1
|
|
make install || exit 1
|
|
|
|
echo $envpkgs > $out/envpkgs || exit 1
|