b5f92a349c
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
40 lines
1.2 KiB
Nix
40 lines
1.2 KiB
Nix
{ fetchurl, fetchpatch, lib, ocamlPackages }:
|
|
|
|
let
|
|
pname = "alt-ergo";
|
|
version = "2.5.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/OCamlPro/alt-ergo/releases/download/v${version}/alt-ergo-${version}.tbz";
|
|
hash = "sha256-9GDBcBH49sheO5AjmDsznMEbw0JSrnSOcIIRN40/aJU=";
|
|
};
|
|
in
|
|
|
|
let alt-ergo-lib = ocamlPackages.buildDunePackage rec {
|
|
pname = "alt-ergo-lib";
|
|
inherit version src;
|
|
buildInputs = with ocamlPackages; [ ppx_blob ];
|
|
propagatedBuildInputs = with ocamlPackages; [ camlzip dolmen_loop dune-build-info fmt ocplib-simplex seq stdlib-shims zarith ];
|
|
}; in
|
|
|
|
let alt-ergo-parsers = ocamlPackages.buildDunePackage rec {
|
|
pname = "alt-ergo-parsers";
|
|
inherit version src;
|
|
nativeBuildInputs = [ ocamlPackages.menhir ];
|
|
propagatedBuildInputs = [ alt-ergo-lib ] ++ (with ocamlPackages; [ psmt2-frontend ]);
|
|
}; in
|
|
|
|
ocamlPackages.buildDunePackage {
|
|
|
|
inherit pname version src;
|
|
|
|
nativeBuildInputs = [ ocamlPackages.menhir ];
|
|
buildInputs = [ alt-ergo-parsers ] ++ (with ocamlPackages; [ cmdliner dune-site ]);
|
|
|
|
meta = {
|
|
description = "High-performance theorem prover and SMT solver";
|
|
homepage = "https://alt-ergo.ocamlpro.com/";
|
|
license = lib.licenses.ocamlpro_nc;
|
|
maintainers = [ lib.maintainers.thoughtpolice ];
|
|
};
|
|
}
|