5557ff764c
GitOrigin-RevId: 988cc958c57ce4350ec248d2d53087777f9e1949
37 lines
1 KiB
Nix
37 lines
1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, flex, cadical, symfpu, gmp, python3, gtest, libantlr3c, antlr3_4, boost, jdk }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cvc5";
|
|
version = "1.0.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cvc5";
|
|
repo = "cvc5";
|
|
rev = "cvc5-${version}";
|
|
hash = "sha256-1yJZtPZ4nMg9Kn3jHpN8b5XeFZ8ZeVLrKYWh7Rp3/oQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config cmake flex ];
|
|
buildInputs = [
|
|
cadical.dev symfpu gmp gtest libantlr3c antlr3_4 boost jdk
|
|
(python3.withPackages (ps: with ps; [ pyparsing toml ]))
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|