2021-01-19 07:50:56 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, cln, gmp, git, swig, pkg-config
|
2020-06-06 18:21:17 +02:00
|
|
|
, readline, libantlr3c, boost, jdk, python3, antlr3_4
|
2017-11-05 18:34:32 +01:00
|
|
|
}:
|
2015-06-14 21:35:29 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "cvc4";
|
2020-06-06 18:21:17 +02:00
|
|
|
version = "1.8";
|
2014-10-12 02:01:10 +02:00
|
|
|
|
2020-06-06 18:21:17 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cvc4";
|
|
|
|
repo = "cvc4";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1rhs4pvzaa1wk00czrczp58b2cxfghpsnq534m0l3snnya2958jp";
|
2014-10-12 02:01:10 +02:00
|
|
|
};
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
2020-06-06 18:21:17 +02:00
|
|
|
buildInputs = [ gmp git python3.pkgs.toml cln readline swig libantlr3c antlr3_4 boost jdk python3 ];
|
2016-07-24 13:11:17 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-language-bindings=c,c++,java"
|
|
|
|
"--enable-gpl"
|
|
|
|
"--with-cln"
|
|
|
|
"--with-readline"
|
|
|
|
"--with-boost=${boost.dev}"
|
|
|
|
];
|
2017-11-05 18:34:32 +01:00
|
|
|
|
2017-11-08 19:20:50 +01:00
|
|
|
prePatch = ''
|
|
|
|
patch -p1 -i ${./minisat-fenv.patch} -d src/prop/minisat
|
|
|
|
patch -p1 -i ${./minisat-fenv.patch} -d src/prop/bvminisat
|
|
|
|
'';
|
|
|
|
|
2016-03-31 01:52:23 +02:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs ./src/
|
|
|
|
'';
|
2020-06-06 18:21:17 +02:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_BUILD_TYPE=Production"
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2015-06-14 21:35:29 +02:00
|
|
|
description = "A high-performance theorem prover and SMT solver";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://cvc4.cs.stanford.edu/web/";
|
2016-07-24 13:11:17 +02:00
|
|
|
license = licenses.gpl3;
|
2015-06-14 21:35:29 +02:00
|
|
|
platforms = platforms.unix;
|
2018-07-05 17:55:42 +02:00
|
|
|
maintainers = with maintainers; [ vbgl thoughtpolice gebner ];
|
2014-10-12 02:01:10 +02:00
|
|
|
};
|
|
|
|
}
|