2022-08-12 12:06:08 +00:00
|
|
|
{ lib, stdenv, gcc10StdenvCompat, pkgs, mkCoqDerivation, coq, trakt, veriT, zchaff, fetchurl, version ? null }:
|
2022-04-27 09:35:20 +00:00
|
|
|
with lib;
|
|
|
|
|
2022-07-18 16:21:45 +00:00
|
|
|
let
|
|
|
|
# version of veriT that works with SMTCoq
|
|
|
|
veriT' = veriT.overrideAttrs (oA: {
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.lri.fr/~keller/Documents-recherche/Smtcoq/veriT9f48a98.tar.gz";
|
|
|
|
sha256 = "sha256-Pe46PxQVHWwWwx5Ei4Bl95A0otCiXZuUZ2nXuZPYnhY=";
|
|
|
|
};
|
|
|
|
meta.broken = false;
|
|
|
|
});
|
2022-08-12 12:06:08 +00:00
|
|
|
cvc4 = pkgs.callPackage ./cvc4.nix {
|
|
|
|
stdenv = gcc10StdenvCompat;
|
|
|
|
};
|
2022-07-18 16:21:45 +00:00
|
|
|
in
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
mkCoqDerivation {
|
|
|
|
pname = "smtcoq";
|
|
|
|
owner = "smtcoq";
|
|
|
|
|
2022-07-18 16:21:45 +00:00
|
|
|
release."2021-09-17".rev = "f36bf11e994cc269c2ec92b061b082e3516f472f";
|
|
|
|
release."2021-09-17".sha256 = "sha256-bF7ES+tXraaAJwVEwAMx3CUESpNlAUerQjr4d2eaGJQ=";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
inherit version;
|
2022-05-18 14:49:53 +00:00
|
|
|
defaultVersion = with versions; switch coq.version [
|
2022-07-18 16:21:45 +00:00
|
|
|
{ case = isEq "8.13"; out = "2021-09-17"; }
|
2022-04-27 09:35:20 +00:00
|
|
|
] null;
|
|
|
|
|
2022-07-18 16:21:45 +00:00
|
|
|
propagatedBuildInputs = [ trakt cvc4 veriT' zchaff ] ++ (with coq.ocamlPackages; [ num zarith ]);
|
2022-06-16 17:23:12 +00:00
|
|
|
mlPlugin = true;
|
|
|
|
nativeBuildInputs = with coq.ocamlPackages; [ ocamlbuild ];
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Communication between Coq and SAT/SMT solvers ";
|
|
|
|
maintainers = with maintainers; [ siraben ];
|
|
|
|
license = licenses.cecill-b;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|