2011-09-19 18:38:16 +02:00
|
|
|
{ stdenv, fetchurl, gmp, readline, openssl, libjpeg, unixODBC, zlib,
|
2011-03-17 23:09:22 +01:00
|
|
|
libXinerama, libXft, libXpm, libSM, libXt, freetype, pkgconfig,
|
|
|
|
fontconfig }:
|
2008-03-06 22:53:54 +01:00
|
|
|
|
2011-09-19 18:38:16 +02:00
|
|
|
let
|
|
|
|
version = "5.10.5";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2010-12-04 12:16:39 +01:00
|
|
|
name = "swi-prolog-${version}";
|
2008-03-06 22:53:54 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-12-04 12:16:39 +01:00
|
|
|
url = "http://www.swi-prolog.org/download/stable/src/pl-${version}.tar.gz";
|
2011-09-19 18:38:16 +02:00
|
|
|
sha256 = "38d938d6a64e894685aa44bf9ea34b5505764cd084e07e6b4c21a9dd89b579d5";
|
2008-03-06 22:53:54 +01:00
|
|
|
};
|
|
|
|
|
2011-09-19 18:38:16 +02:00
|
|
|
buildInputs = [gmp readline openssl libjpeg unixODBC libXinerama
|
2011-03-17 23:09:22 +01:00
|
|
|
libXft libXpm libSM libXt zlib freetype pkgconfig fontconfig];
|
2009-12-09 15:07:09 +01:00
|
|
|
configureFlags = "--with-world --enable-gmp --enable-shared";
|
|
|
|
makeFlags = "world";
|
|
|
|
|
2011-03-17 23:09:22 +01:00
|
|
|
preConfigure = ''
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${freetype}/include/freetype2"
|
|
|
|
'';
|
|
|
|
|
2008-03-06 22:53:54 +01:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.swi-prolog.org/;
|
2009-11-18 10:39:59 +01:00
|
|
|
description = "A Prolog compiler and interpreter";
|
2008-03-06 22:53:54 +01:00
|
|
|
license = "LGPL";
|
2011-09-19 18:38:16 +02:00
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
2008-03-06 22:53:54 +01:00
|
|
|
};
|
|
|
|
}
|