mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
5bb330db07
svn path=/nixpkgs/trunk/; revision=29350
34 lines
994 B
Nix
34 lines
994 B
Nix
{ stdenv, fetchurl, gmp, readline, openssl, libjpeg, unixODBC, zlib,
|
|
libXinerama, libXft, libXpm, libSM, libXt, freetype, pkgconfig,
|
|
fontconfig }:
|
|
|
|
let
|
|
version = "5.10.5";
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = "swi-prolog-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.swi-prolog.org/download/stable/src/pl-${version}.tar.gz";
|
|
sha256 = "38d938d6a64e894685aa44bf9ea34b5505764cd084e07e6b4c21a9dd89b579d5";
|
|
};
|
|
|
|
buildInputs = [gmp readline openssl libjpeg unixODBC libXinerama
|
|
libXft libXpm libSM libXt zlib freetype pkgconfig fontconfig];
|
|
configureFlags = "--with-world --enable-gmp --enable-shared";
|
|
makeFlags = "world";
|
|
|
|
preConfigure = ''
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${freetype}/include/freetype2"
|
|
'';
|
|
|
|
meta = {
|
|
homepage = http://www.swi-prolog.org/;
|
|
description = "A Prolog compiler and interpreter";
|
|
license = "LGPL";
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
|
};
|
|
}
|