depot/third_party/nixpkgs/pkgs/development/coq-modules/smtcoq/cvc4.nix
Default email c6ca5b8f13 Project import generated by Copybara.
GitOrigin-RevId: e4d49de45a3b5dbcb881656b4e3986e666141ea9
2022-07-18 18:21:45 +02:00

44 lines
1.2 KiB
Nix

{ lib, stdenv, cln, fetchurl, gmp, swig, pkg-config
, readline, libantlr3c, boost, jdk8, autoreconfHook
, python3, antlr3_4
}:
stdenv.mkDerivation rec {
pname = "cvc4";
version = "1.6";
src = fetchurl {
url = "https://cvc4.cs.stanford.edu/downloads/builds/src/cvc4-${version}.tar.gz";
sha256 = "1iw793zsi48q91lxpf8xl8lnvv0jsj4whdad79rakywkm1gbs62w";
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ gmp readline swig libantlr3c antlr3_4 boost jdk8 python3 ]
++ lib.optionals stdenv.isLinux [ cln ];
configureFlags = [
"--enable-language-bindings=c,c++,java"
"--enable-gpl"
"--with-readline"
"--with-boost=${boost.dev}"
] ++ lib.optionals stdenv.isLinux [ "--with-cln" ];
prePatch = ''
patch -p1 -i ${./minisat-fenv.patch} -d src/prop/minisat
patch -p1 -i ${./minisat-fenv.patch} -d src/prop/bvminisat
'';
preConfigure = ''
patchShebangs ./src/
'';
enableParallelBuilding = true;
meta = with lib; {
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 ];
};
}