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