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
|
2013-04-18 10:28:20 +02:00
|
|
|
version = "6.2.6";
|
2011-09-19 18:38:16 +02:00
|
|
|
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";
|
2013-04-18 10:28:20 +02:00
|
|
|
sha256 = "0ii14ghmky91kkh017khahl00s4igkz03b5gy6y0vhv179sz04ll";
|
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
|
|
|
};
|
|
|
|
}
|