2024-01-02 11:29:13 +00:00
|
|
|
{ darwin, fetchurl, lib, ocamlPackages, stdenv }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "alt-ergo";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "2.5.2";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/OCamlPro/alt-ergo/releases/download/v${version}/alt-ergo-${version}.tbz";
|
2023-10-19 13:55:26 +00:00
|
|
|
hash = "sha256-9GDBcBH49sheO5AjmDsznMEbw0JSrnSOcIIRN40/aJU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
in
|
|
|
|
|
|
|
|
let alt-ergo-lib = ocamlPackages.buildDunePackage rec {
|
|
|
|
pname = "alt-ergo-lib";
|
2023-10-09 19:29:22 +00:00
|
|
|
inherit version src;
|
|
|
|
buildInputs = with ocamlPackages; [ ppx_blob ];
|
|
|
|
propagatedBuildInputs = with ocamlPackages; [ camlzip dolmen_loop dune-build-info fmt ocplib-simplex seq stdlib-shims zarith ];
|
2020-04-24 23:36:52 +00:00
|
|
|
}; in
|
|
|
|
|
|
|
|
let alt-ergo-parsers = ocamlPackages.buildDunePackage rec {
|
|
|
|
pname = "alt-ergo-parsers";
|
2023-10-09 19:29:22 +00:00
|
|
|
inherit version src;
|
|
|
|
nativeBuildInputs = [ ocamlPackages.menhir ];
|
|
|
|
propagatedBuildInputs = [ alt-ergo-lib ] ++ (with ocamlPackages; [ psmt2-frontend ]);
|
2020-04-24 23:36:52 +00:00
|
|
|
}; in
|
|
|
|
|
|
|
|
ocamlPackages.buildDunePackage {
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
inherit pname version src;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
nativeBuildInputs = [ ocamlPackages.menhir ] ++ lib.optionals stdenv.isDarwin [ darwin.sigtool ];
|
2023-10-09 19:29:22 +00:00
|
|
|
buildInputs = [ alt-ergo-parsers ] ++ (with ocamlPackages; [ cmdliner dune-site ]);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "High-performance theorem prover and SMT solver";
|
|
|
|
homepage = "https://alt-ergo.ocamlpro.com/";
|
|
|
|
license = lib.licenses.ocamlpro_nc;
|
|
|
|
maintainers = [ lib.maintainers.thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|