Fix SWI-Prolog build

svn path=/nixpkgs/trunk/; revision=26407
This commit is contained in:
Michael Raskin 2011-03-17 22:09:22 +00:00
parent 92a26c823c
commit 36af24fc05

View File

@ -1,4 +1,6 @@
{ stdenv, fetchurl, gmp, readline, openssl, libjpeg, unixODBC, zlib, libXinerama, libXft, libXpm, libSM, libXt }: { stdenv, fetchurl, gmp, readline, openssl, libjpeg, unixODBC, zlib,
libXinerama, libXft, libXpm, libSM, libXt, freetype, pkgconfig,
fontconfig }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "5.10.2"; version = "5.10.2";
@ -9,10 +11,15 @@ stdenv.mkDerivation rec {
sha256 = "1a3ebbcd649f429a41b64561d38423692e00524c29227432d0eb5a0e24e2a4c9"; sha256 = "1a3ebbcd649f429a41b64561d38423692e00524c29227432d0eb5a0e24e2a4c9";
}; };
buildInputs = [gmp readline openssl libjpeg unixODBC libXinerama libXft libXpm libSM libXt zlib]; buildInputs = [gmp readline openssl libjpeg unixODBC libXinerama
libXft libXpm libSM libXt zlib freetype pkgconfig fontconfig];
configureFlags = "--with-world --enable-gmp --enable-shared"; configureFlags = "--with-world --enable-gmp --enable-shared";
makeFlags = "world"; makeFlags = "world";
preConfigure = ''
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${freetype}/include/freetype2"
'';
meta = { meta = {
homepage = http://www.swi-prolog.org/; homepage = http://www.swi-prolog.org/;
description = "A Prolog compiler and interpreter"; description = "A Prolog compiler and interpreter";