2021-04-19 08:15:12 +00:00
|
|
|
{ fetchFromGitHub, lib, which, ocamlPackages }:
|
2014-05-01 07:29:42 +00:00
|
|
|
|
2020-03-24 07:33:34 +00:00
|
|
|
let
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "alt-ergo";
|
2021-10-06 04:51:19 +00:00
|
|
|
version = "2.4.1";
|
2014-05-01 07:29:42 +00:00
|
|
|
|
2021-04-19 08:15:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OCamlPro";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-10-06 04:51:19 +00:00
|
|
|
sha256 = "0hglj1p0753w2isds01h90knraxa42d2jghr35dpwf9g8a1sm9d3";
|
2014-05-01 07:29:42 +00:00
|
|
|
};
|
|
|
|
|
2021-02-17 17:02:47 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
2020-03-24 07:33:34 +00:00
|
|
|
nativeBuildInputs = [ which ];
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
let alt-ergo-lib = ocamlPackages.buildDunePackage rec {
|
|
|
|
pname = "alt-ergo-lib";
|
2021-02-17 17:02:47 +00:00
|
|
|
inherit version src useDune2 nativeBuildInputs;
|
2020-03-24 07:33:34 +00:00
|
|
|
configureFlags = pname;
|
2021-04-19 08:15:12 +00:00
|
|
|
buildInputs = with ocamlPackages; [ dune-configurator ];
|
2020-04-01 15:30:35 +00:00
|
|
|
propagatedBuildInputs = with ocamlPackages; [ num ocplib-simplex stdlib-shims zarith ];
|
2020-03-24 07:33:34 +00:00
|
|
|
}; in
|
|
|
|
|
|
|
|
let alt-ergo-parsers = ocamlPackages.buildDunePackage rec {
|
|
|
|
pname = "alt-ergo-parsers";
|
2021-02-17 17:02:47 +00:00
|
|
|
inherit version src useDune2 nativeBuildInputs;
|
2020-03-24 07:33:34 +00:00
|
|
|
configureFlags = pname;
|
|
|
|
buildInputs = with ocamlPackages; [ menhir ];
|
|
|
|
propagatedBuildInputs = [ alt-ergo-lib ] ++ (with ocamlPackages; [ camlzip psmt2-frontend ]);
|
|
|
|
}; in
|
|
|
|
|
|
|
|
ocamlPackages.buildDunePackage {
|
|
|
|
|
2021-02-17 17:02:47 +00:00
|
|
|
inherit pname version src useDune2 nativeBuildInputs;
|
2020-03-24 07:33:34 +00:00
|
|
|
|
|
|
|
configureFlags = pname;
|
|
|
|
|
2021-04-19 08:15:12 +00:00
|
|
|
buildInputs = [ alt-ergo-parsers ] ++ (with ocamlPackages; [
|
|
|
|
cmdliner menhir ])
|
|
|
|
;
|
2020-03-24 07:33:34 +00:00
|
|
|
|
2014-05-01 07:29:42 +00:00
|
|
|
meta = {
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "High-performance theorem prover and SMT solver";
|
2017-08-13 11:26:30 +00:00
|
|
|
homepage = "https://alt-ergo.ocamlpro.com/";
|
2020-03-24 07:33:34 +00:00
|
|
|
license = lib.licenses.ocamlpro_nc;
|
|
|
|
maintainers = [ lib.maintainers.thoughtpolice ];
|
2014-05-01 07:29:42 +00:00
|
|
|
};
|
|
|
|
}
|