2017-11-05 17:34:32 +00:00
|
|
|
{ stdenv, fetchurl, cln, gmp, swig, pkgconfig
|
|
|
|
, readline, libantlr3c, boost, jdk, autoreconfHook
|
|
|
|
, python2, antlr3_4
|
|
|
|
}:
|
2015-06-14 19:35:29 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-11-05 17:34:32 +00:00
|
|
|
name = "cvc4-${version}";
|
|
|
|
version = "1.5";
|
2014-10-12 00:01:10 +00:00
|
|
|
|
2017-11-05 17:34:32 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://cvc4.cs.stanford.edu/downloads/builds/src/cvc4-${version}.tar.gz";
|
|
|
|
sha256 = "0yxxawgc9vd2cz883swjlm76rbdkj48n7a8dfppsami530y2rvhi";
|
2014-10-12 00:01:10 +00:00
|
|
|
};
|
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
buildInputs = [ gmp cln readline swig libantlr3c antlr3_4 boost jdk python2 ];
|
2016-07-24 11:11:17 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-language-bindings=c,c++,java"
|
|
|
|
"--enable-gpl"
|
|
|
|
"--with-cln"
|
|
|
|
"--with-readline"
|
|
|
|
"--with-boost=${boost.dev}"
|
|
|
|
];
|
2017-11-05 17:34:32 +00:00
|
|
|
|
2017-11-08 18:20:50 +00:00
|
|
|
prePatch = ''
|
|
|
|
patch -p1 -i ${./minisat-fenv.patch} -d src/prop/minisat
|
|
|
|
patch -p1 -i ${./minisat-fenv.patch} -d src/prop/bvminisat
|
|
|
|
'';
|
|
|
|
|
2016-03-30 23:52:23 +00:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs ./src/
|
|
|
|
'';
|
2014-10-12 00:01:10 +00:00
|
|
|
|
2017-11-08 18:16:16 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-10-12 00:01:10 +00:00
|
|
|
meta = with stdenv.lib; {
|
2015-06-14 19:35:29 +00:00
|
|
|
description = "A high-performance theorem prover and SMT solver";
|
|
|
|
homepage = http://cvc4.cs.nyu.edu/web/;
|
2016-07-24 11:11:17 +00:00
|
|
|
license = licenses.gpl3;
|
2015-06-14 19:35:29 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ vbgl thoughtpolice ];
|
2014-10-12 00:01:10 +00:00
|
|
|
};
|
|
|
|
}
|