2023-02-22 10:55:15 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, flex, cadical, symfpu, gmp, python3, gtest, libantlr3c, antlr3_4, boost, jdk }:
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cvc5";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.1.2";
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cvc5";
|
|
|
|
repo = "cvc5";
|
|
|
|
rev = "cvc5-${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-v+3/2IUslQOySxFDYgTBWJIDnyjbU2RPdpfLcIkEtgQ=";
|
2022-04-15 01:41:22 +00:00
|
|
|
};
|
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cmake flex ];
|
|
|
|
buildInputs = [
|
|
|
|
cadical.dev symfpu gmp gtest libantlr3c antlr3_4 boost jdk
|
2023-08-22 20:05:09 +00:00
|
|
|
(python3.withPackages (ps: with ps; [ pyparsing tomli ]))
|
2023-02-22 10:55:15 +00:00
|
|
|
];
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs ./src/
|
|
|
|
'';
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
cmakeBuildType = "Production";
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_SHARED_LIBS=1"
|
|
|
|
"-DANTLR3_JAR=${antlr3_4}/lib/antlr/antlr-3.4-complete.jar"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "High-performance theorem prover and SMT solver";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "cvc5";
|
2022-04-15 01:41:22 +00:00
|
|
|
homepage = "https://cvc5.github.io";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ shadaj ];
|
|
|
|
};
|
|
|
|
}
|