2009-02-19 14:32:07 +01:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-10-24 18:28:36 +02:00
|
|
|
name = "gprolog-1.4.1";
|
2009-02-19 14:32:07 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
urls = [
|
|
|
|
"mirror://gnu/gprolog/${name}.tar.gz"
|
|
|
|
"http://www.gprolog.org/${name}.tar.gz"
|
|
|
|
];
|
2012-10-24 18:28:36 +02:00
|
|
|
sha256 = "e2819ed9c426138d3191e4d97ae5121cf97e132eecf102400f87f1e372a05b72";
|
2009-02-19 14:32:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
configurePhase = "cd src ;"
|
|
|
|
+ "./configure --prefix=$out "
|
|
|
|
+ "--with-install-dir=$out/share/${name} "
|
|
|
|
+ "--with-examples-dir=$out/share/doc/${name}/examples "
|
|
|
|
+ "--with-doc-dir=$out/share/doc/${name}";
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
ln -vs "$out/share/${name}/include" "$out/include"
|
2012-10-24 18:28:36 +02:00
|
|
|
ln -vs "$out/share/${name}/lib" "$out/lib"
|
2009-02-19 14:32:07 +01:00
|
|
|
'';
|
|
|
|
|
2012-10-24 18:28:36 +02:00
|
|
|
doCheck = true;
|
2009-02-19 14:32:07 +01:00
|
|
|
|
2012-10-24 18:28:36 +02:00
|
|
|
meta = {
|
|
|
|
homepage = "http://www.gnu.org/software/gprolog/";
|
2009-02-19 14:32:07 +01:00
|
|
|
description = "GNU Prolog, a free Prolog compiler with constraint solving over finite domains";
|
2012-10-24 18:28:36 +02:00
|
|
|
license = "GPLv2+";
|
2009-02-19 14:32:07 +01:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
GNU Prolog is a free Prolog compiler with constraint solving
|
|
|
|
over finite domains developed by Daniel Diaz.
|
|
|
|
|
|
|
|
GNU Prolog accepts Prolog+constraint programs and produces
|
|
|
|
native binaries (like gcc does from a C source). The obtained
|
|
|
|
executable is then stand-alone. The size of this executable can
|
|
|
|
be quite small since GNU Prolog can avoid to link the code of
|
|
|
|
most unused built-in predicates. The performances of GNU Prolog
|
|
|
|
are very encouraging (comparable to commercial systems).
|
|
|
|
|
|
|
|
Beside the native-code compilation, GNU Prolog offers a
|
|
|
|
classical interactive interpreter (top-level) with a debugger.
|
|
|
|
|
|
|
|
The Prolog part conforms to the ISO standard for Prolog with
|
|
|
|
many extensions very useful in practice (global variables, OS
|
|
|
|
interface, sockets,...).
|
|
|
|
|
|
|
|
GNU Prolog also includes an efficient constraint solver over
|
|
|
|
Finite Domains (FD). This opens contraint logic programming to
|
|
|
|
the user combining the power of constraint programming to the
|
|
|
|
declarativity of logic programming.
|
|
|
|
'';
|
|
|
|
|
2011-07-07 23:05:02 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
|
|
|
platforms = stdenv.lib.platforms.gnu;
|
2009-02-19 14:32:07 +01:00
|
|
|
};
|
|
|
|
}
|