2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, cln, gmp, git, swig, pkg-config
|
2020-08-20 17:08:02 +00:00
|
|
|
, readline, libantlr3c, boost, jdk, python3, antlr3_4
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cvc4";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "1.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cvc4";
|
|
|
|
repo = "cvc4";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1rhs4pvzaa1wk00czrczp58b2cxfghpsnq534m0l3snnya2958jp";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
2022-06-16 17:23:12 +00:00
|
|
|
buildInputs = [ gmp git python3.pkgs.toml readline swig libantlr3c antlr3_4 boost jdk python3 ]
|
|
|
|
++ lib.optionals (!stdenv.isDarwin) [ cln ];
|
2020-04-24 23:36:52 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-language-bindings=c,c++,java"
|
|
|
|
"--enable-gpl"
|
|
|
|
"--with-readline"
|
|
|
|
"--with-boost=${boost.dev}"
|
2022-06-16 17:23:12 +00:00
|
|
|
] ++ lib.optionals (!stdenv.isDarwin) [ "--with-cln" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
patch -p1 -i ${./minisat-fenv.patch} -d src/prop/minisat
|
|
|
|
patch -p1 -i ${./minisat-fenv.patch} -d src/prop/bvminisat
|
|
|
|
'';
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs ./src/
|
|
|
|
'';
|
2020-08-20 17:08:02 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_BUILD_TYPE=Production"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A high-performance theorem prover and SMT solver";
|
|
|
|
homepage = "http://cvc4.cs.stanford.edu/web/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ vbgl thoughtpolice gebner ];
|
|
|
|
};
|
|
|
|
}
|