2017-11-05 09:34:32 -08:00
|
|
|
{ stdenv, fetchurl, cln, gmp, swig, pkgconfig
|
|
|
|
, readline, libantlr3c, boost, jdk, autoreconfHook
|
2018-07-05 08:55:42 -07:00
|
|
|
, python3, antlr3_4
|
2017-11-05 09:34:32 -08:00
|
|
|
}:
|
2015-06-14 12:35:29 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-11-05 09:34:32 -08:00
|
|
|
name = "cvc4-${version}";
|
2018-07-05 08:55:42 -07:00
|
|
|
version = "1.6";
|
2014-10-11 17:01:10 -07:00
|
|
|
|
2017-11-05 09:34:32 -08:00
|
|
|
src = fetchurl {
|
2018-06-28 11:43:35 -07:00
|
|
|
url = "https://cvc4.cs.stanford.edu/downloads/builds/src/cvc4-${version}.tar.gz";
|
2018-07-05 08:55:42 -07:00
|
|
|
sha256 = "1iw793zsi48q91lxpf8xl8lnvv0jsj4whdad79rakywkm1gbs62w";
|
2014-10-11 17:01:10 -07:00
|
|
|
};
|
|
|
|
|
2017-09-05 14:26:13 -07:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
2018-07-05 08:55:42 -07:00
|
|
|
buildInputs = [ gmp cln readline swig libantlr3c antlr3_4 boost jdk python3 ];
|
2016-07-24 04:11:17 -07:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-language-bindings=c,c++,java"
|
|
|
|
"--enable-gpl"
|
|
|
|
"--with-cln"
|
|
|
|
"--with-readline"
|
|
|
|
"--with-boost=${boost.dev}"
|
|
|
|
];
|
2017-11-05 09:34:32 -08:00
|
|
|
|
2017-11-08 10:20:50 -08: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 16:52:23 -07:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs ./src/
|
|
|
|
'';
|
2014-10-11 17:01:10 -07:00
|
|
|
|
2017-11-08 10:16:16 -08:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-10-11 17:01:10 -07:00
|
|
|
meta = with stdenv.lib; {
|
2015-06-14 12:35:29 -07:00
|
|
|
description = "A high-performance theorem prover and SMT solver";
|
2018-07-16 07:58:22 -07:00
|
|
|
homepage = http://cvc4.cs.stanford.edu/web/;
|
2016-07-24 04:11:17 -07:00
|
|
|
license = licenses.gpl3;
|
2015-06-14 12:35:29 -07:00
|
|
|
platforms = platforms.unix;
|
2018-07-05 08:55:42 -07:00
|
|
|
maintainers = with maintainers; [ vbgl thoughtpolice gebner ];
|
2014-10-11 17:01:10 -07:00
|
|
|
};
|
|
|
|
}
|