34 lines
909 B
Nix
34 lines
909 B
Nix
{ stdenv, fetchurl, gmp, readline, openssl, libjpeg, unixODBC, zlib
|
|
, libXinerama, libXft, libXpm, libSM, libXt, freetype, pkgconfig
|
|
, fontconfig
|
|
}:
|
|
|
|
let
|
|
version = "7.2.3";
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = "swi-prolog-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.swi-prolog.org/download/stable/src/swipl-${version}.tar.gz";
|
|
sha256 = "1da6sr8pz1zffs79nfa1d25a11ibhalm1vdwsb17p265nx8psra3";
|
|
};
|
|
|
|
buildInputs = [ gmp readline openssl libjpeg unixODBC libXinerama
|
|
libXft libXpm libSM libXt zlib freetype pkgconfig fontconfig ];
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
configureFlags = "--with-world --enable-gmp --enable-shared";
|
|
|
|
buildFlags = "world";
|
|
|
|
meta = {
|
|
homepage = http://www.swi-prolog.org/;
|
|
description = "A Prolog compiler and interpreter";
|
|
license = "LGPL";
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = [ stdenv.lib.maintainers.peti ];
|
|
};
|
|
}
|