depot/third_party/nixpkgs/pkgs/development/coq-modules/smtcoq/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

40 lines
1.2 KiB
Nix

{ lib, stdenv, gcc10StdenvCompat, pkgs, mkCoqDerivation, coq, trakt, veriT, zchaff, fetchurl, version ? null }:
with lib;
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;
});
cvc4 = pkgs.callPackage ./cvc4.nix {
stdenv = gcc10StdenvCompat;
};
in
mkCoqDerivation {
pname = "smtcoq";
owner = "smtcoq";
release."2021-09-17".rev = "f36bf11e994cc269c2ec92b061b082e3516f472f";
release."2021-09-17".sha256 = "sha256-bF7ES+tXraaAJwVEwAMx3CUESpNlAUerQjr4d2eaGJQ=";
inherit version;
defaultVersion = with versions; switch coq.version [
{ case = isEq "8.13"; out = "2021-09-17"; }
] null;
propagatedBuildInputs = [ trakt cvc4 veriT' zchaff ] ++ (with coq.ocamlPackages; [ num zarith ]);
mlPlugin = true;
nativeBuildInputs = with coq.ocamlPackages; [ ocamlbuild ];
meta = {
description = "Communication between Coq and SAT/SMT solvers ";
maintainers = with maintainers; [ siraben ];
license = licenses.cecill-b;
platforms = platforms.unix;
};
}