2020-04-24 23:36:52 +00:00
|
|
|
{ fetchurl, lib, which, ocamlPackages }:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "alt-ergo";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "2.3.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://alt-ergo.ocamlpro.com/http/alt-ergo-${version}/alt-ergo-${version}.tar.gz";
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "124k2a4ikk4wdpmvgjpgl97x9skvr9qznk8m68dzsynzpv6yksaj";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-24 18:30:23 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ which ];
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
let alt-ergo-lib = ocamlPackages.buildDunePackage rec {
|
|
|
|
pname = "alt-ergo-lib";
|
2021-02-24 18:30:23 +00:00
|
|
|
inherit version src useDune2 nativeBuildInputs;
|
2020-04-24 23:36:52 +00:00
|
|
|
configureFlags = pname;
|
|
|
|
propagatedBuildInputs = with ocamlPackages; [ num ocplib-simplex stdlib-shims zarith ];
|
|
|
|
}; in
|
|
|
|
|
|
|
|
let alt-ergo-parsers = ocamlPackages.buildDunePackage rec {
|
|
|
|
pname = "alt-ergo-parsers";
|
2021-02-24 18:30:23 +00:00
|
|
|
inherit version src useDune2 nativeBuildInputs;
|
2020-04-24 23:36:52 +00:00
|
|
|
configureFlags = pname;
|
|
|
|
buildInputs = with ocamlPackages; [ menhir ];
|
|
|
|
propagatedBuildInputs = [ alt-ergo-lib ] ++ (with ocamlPackages; [ camlzip psmt2-frontend ]);
|
|
|
|
}; in
|
|
|
|
|
|
|
|
ocamlPackages.buildDunePackage {
|
|
|
|
|
2021-02-24 18:30:23 +00:00
|
|
|
inherit pname version src useDune2 nativeBuildInputs;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = pname;
|
|
|
|
|
|
|
|
buildInputs = [ alt-ergo-parsers ocamlPackages.menhir ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "High-performance theorem prover and SMT solver";
|
|
|
|
homepage = "https://alt-ergo.ocamlpro.com/";
|
|
|
|
license = lib.licenses.ocamlpro_nc;
|
|
|
|
maintainers = [ lib.maintainers.thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|