2020-03-24 07:33:34 +00:00
|
|
|
{ fetchurl, lib, which, ocamlPackages }:
|
2014-05-01 08:29:42 +01:00
|
|
|
|
2020-03-24 07:33:34 +00:00
|
|
|
let
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "alt-ergo";
|
2020-08-26 09:09:56 +01:00
|
|
|
version = "2.3.3";
|
2014-05-01 08:29:42 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 16:30:35 +01:00
|
|
|
url = "https://alt-ergo.ocamlpro.com/http/alt-ergo-${version}/alt-ergo-${version}.tar.gz";
|
2020-08-26 09:09:56 +01:00
|
|
|
sha256 = "124k2a4ikk4wdpmvgjpgl97x9skvr9qznk8m68dzsynzpv6yksaj";
|
2014-05-01 08:29:42 +01:00
|
|
|
};
|
|
|
|
|
2020-03-24 07:33:34 +00:00
|
|
|
nativeBuildInputs = [ which ];
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
let alt-ergo-lib = ocamlPackages.buildDunePackage rec {
|
|
|
|
pname = "alt-ergo-lib";
|
2020-08-26 09:09:56 +01:00
|
|
|
inherit version src nativeBuildInputs;
|
2020-03-24 07:33:34 +00:00
|
|
|
configureFlags = pname;
|
2020-04-01 16:30:35 +01: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";
|
2020-08-26 09:09:56 +01:00
|
|
|
inherit version src 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 {
|
|
|
|
|
2020-08-26 09:09:56 +01:00
|
|
|
inherit pname version src nativeBuildInputs;
|
2020-03-24 07:33:34 +00:00
|
|
|
|
|
|
|
configureFlags = pname;
|
|
|
|
|
|
|
|
buildInputs = [ alt-ergo-parsers ocamlPackages.menhir ];
|
|
|
|
|
2014-05-01 08:29:42 +01:00
|
|
|
meta = {
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "High-performance theorem prover and SMT solver";
|
2017-08-13 12:26:30 +01: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 08:29:42 +01:00
|
|
|
};
|
|
|
|
}
|