2020-03-24 00:33:34 -07:00
|
|
|
{ fetchurl, lib, which, ocamlPackages }:
|
2014-05-01 00:29:42 -07:00
|
|
|
|
2020-03-24 00:33:34 -07:00
|
|
|
let
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "alt-ergo";
|
2020-04-01 08:30:35 -07:00
|
|
|
version = "2.3.2";
|
2014-05-01 00:29:42 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 08:30:35 -07:00
|
|
|
url = "https://alt-ergo.ocamlpro.com/http/alt-ergo-${version}/alt-ergo-${version}.tar.gz";
|
|
|
|
sha256 = "130hisjzkaslygipdaaqib92spzx9rapsd45dbh5ssczjn5qnhb9";
|
2014-05-01 00:29:42 -07:00
|
|
|
};
|
|
|
|
|
2019-02-12 01:19:06 -08:00
|
|
|
preConfigure = "patchShebangs ./configure";
|
2014-05-01 00:29:42 -07:00
|
|
|
|
2020-03-24 00:33:34 -07:00
|
|
|
nativeBuildInputs = [ which ];
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
let alt-ergo-lib = ocamlPackages.buildDunePackage rec {
|
|
|
|
pname = "alt-ergo-lib";
|
|
|
|
inherit version src preConfigure nativeBuildInputs;
|
|
|
|
configureFlags = pname;
|
2020-04-01 08:30:35 -07:00
|
|
|
propagatedBuildInputs = with ocamlPackages; [ num ocplib-simplex stdlib-shims zarith ];
|
2020-03-24 00:33:34 -07:00
|
|
|
}; in
|
|
|
|
|
|
|
|
let alt-ergo-parsers = ocamlPackages.buildDunePackage rec {
|
|
|
|
pname = "alt-ergo-parsers";
|
|
|
|
inherit version src preConfigure nativeBuildInputs;
|
|
|
|
configureFlags = pname;
|
|
|
|
buildInputs = with ocamlPackages; [ menhir ];
|
|
|
|
propagatedBuildInputs = [ alt-ergo-lib ] ++ (with ocamlPackages; [ camlzip psmt2-frontend ]);
|
|
|
|
}; in
|
|
|
|
|
|
|
|
ocamlPackages.buildDunePackage {
|
|
|
|
|
|
|
|
inherit pname version src preConfigure nativeBuildInputs;
|
|
|
|
|
|
|
|
configureFlags = pname;
|
|
|
|
|
|
|
|
buildInputs = [ alt-ergo-parsers ocamlPackages.menhir ];
|
|
|
|
|
2014-05-01 00:29:42 -07:00
|
|
|
meta = {
|
2014-08-24 07:21:08 -07:00
|
|
|
description = "High-performance theorem prover and SMT solver";
|
2017-08-13 04:26:30 -07:00
|
|
|
homepage = "https://alt-ergo.ocamlpro.com/";
|
2020-03-24 00:33:34 -07:00
|
|
|
license = lib.licenses.ocamlpro_nc;
|
|
|
|
maintainers = [ lib.maintainers.thoughtpolice ];
|
2014-05-01 00:29:42 -07:00
|
|
|
};
|
|
|
|
}
|