depot/third_party/nixpkgs/pkgs/applications/science/logic/cvc5/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

38 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.8";
src = fetchFromGitHub {
owner = "cvc5";
repo = "cvc5";
rev = "cvc5-${version}";
hash = "sha256-2sJKHD7Wzznut4hKOyxgc4LR4H+4u3m8Gq02+v+m5lM=";
};
nativeBuildInputs = [ pkg-config cmake flex ];
buildInputs = [
cadical.dev symfpu gmp gtest libantlr3c antlr3_4 boost jdk
(python3.withPackages (ps: with ps; [ pyparsing tomli ]))
];
preConfigure = ''
patchShebangs ./src/
'';
cmakeBuildType = "Production";
cmakeFlags = [
"-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 ];
};
}