2022-04-15 01:41:22 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, cadical, symfpu, gmp, git, python3, gtest, libantlr3c, antlr3_4, boost, jdk }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cvc5";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "1.0.2";
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cvc5";
|
|
|
|
repo = "cvc5";
|
|
|
|
rev = "cvc5-${version}";
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-RDslPz9b0R9NXaXoixSCenHEh+F3wg/8p4Ksrzh41PI=";
|
2022-04-15 01:41:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
|
|
|
buildInputs = [ cadical.dev symfpu gmp git python3 python3.pkgs.toml gtest libantlr3c antlr3_4 boost jdk ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs ./src/
|
|
|
|
'';
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_BUILD_TYPE=Production"
|
|
|
|
"-DBUILD_SHARED_LIBS=1"
|
|
|
|
"-DANTLR3_JAR=${antlr3_4}/lib/antlr/antlr-3.4-complete.jar"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A high-performance theorem prover and SMT solver";
|
|
|
|
homepage = "https://cvc5.github.io";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ shadaj ];
|
|
|
|
};
|
|
|
|
}
|