2024-02-29 20:09:43 +00:00
|
|
|
{ lib, stdenv, pkgs, mkCoqDerivation, coq, trakt, veriT, zchaff, fetchurl, cvc5, version ? null }:
|
2022-04-27 09:35:20 +00:00
|
|
|
|
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;
|
|
|
|
});
|
|
|
|
in
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
mkCoqDerivation {
|
|
|
|
pname = "smtcoq";
|
|
|
|
owner = "smtcoq";
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
release."SMTCoq-2.1+8.16".rev = "4996c00b455bfe98400e96c954839ceea93efdf7";
|
|
|
|
release."SMTCoq-2.1+8.16".sha256 = "sha256-k53e+frUjwq+ZZKbbOKd/EfVC40QeAzB2nCsGkCKnHA=";
|
|
|
|
release."SMTCoq-2.1+8.14".rev = "e11d9b424b0113f32265bcef0ddc962361da4dae";
|
|
|
|
release."SMTCoq-2.1+8.14".sha256 = "sha256-4a01/CRHUon2OfpagAnMaEVkBFipPX3MCVmSFS1Bnt4=";
|
|
|
|
release."SMTCoq-2.1+8.13".rev = "d02269c43739f4559d83873563ca00daad9faaf1";
|
|
|
|
release."SMTCoq-2.1+8.13".sha256 = "sha256-VZetGghdr5uJWDwZWSlhYScoNEoRHIbwqwJKSQyfKKg=";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
inherit version;
|
2023-02-02 18:25:31 +00:00
|
|
|
defaultVersion = with lib.versions; lib.switch coq.version [
|
2024-02-29 20:09:43 +00:00
|
|
|
{ case = isEq "8.16"; out = "SMTCoq-2.1+8.16"; }
|
|
|
|
{ case = isEq "8.14"; out = "SMTCoq-2.1+8.14"; }
|
|
|
|
{ case = isEq "8.13"; out = "SMTCoq-2.1+8.13"; }
|
2022-04-27 09:35:20 +00:00
|
|
|
] null;
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
propagatedBuildInputs = [ trakt cvc5 veriT' zchaff ] ++ (with coq.ocamlPackages; [ num zarith ]);
|
2022-06-16 17:23:12 +00:00
|
|
|
mlPlugin = true;
|
2023-01-11 07:51:40 +00:00
|
|
|
nativeBuildInputs = (with pkgs; [ gnumake42 ]) ++ (with coq.ocamlPackages; [ ocamlbuild ]);
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
# This is meant to ease future troubleshooting of cvc5 build failures
|
|
|
|
passthru = { inherit cvc5; };
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
2024-02-29 20:09:43 +00:00
|
|
|
description = "Communication between Coq and SAT/SMT solvers";
|
2022-04-27 09:35:20 +00:00
|
|
|
maintainers = with maintainers; [ siraben ];
|
|
|
|
license = licenses.cecill-b;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|