9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
52 lines
1.6 KiB
Nix
52 lines
1.6 KiB
Nix
{ fetchFromGitHub, fetchpatch, lib, which, ocamlPackages }:
|
|
|
|
let
|
|
pname = "alt-ergo";
|
|
version = "2.4.3";
|
|
|
|
configureScript = "ocaml unix.cma configure.ml";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "OCamlPro";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-2XARGr8rLiPMOM0rBBoRv5tZvKYtkLkJctGqLYkMe7Q=";
|
|
};
|
|
in
|
|
|
|
let alt-ergo-lib = ocamlPackages.buildDunePackage rec {
|
|
pname = "alt-ergo-lib";
|
|
inherit version src configureScript;
|
|
configureFlags = [ pname ];
|
|
nativeBuildInputs = [ which ];
|
|
buildInputs = with ocamlPackages; [ dune-configurator ];
|
|
propagatedBuildInputs = with ocamlPackages; [ dune-build-info num ocplib-simplex seq stdlib-shims zarith ];
|
|
preBuild = ''
|
|
substituteInPlace src/lib/util/version.ml --replace 'version="dev"' 'version="${version}"'
|
|
'';
|
|
}; in
|
|
|
|
let alt-ergo-parsers = ocamlPackages.buildDunePackage rec {
|
|
pname = "alt-ergo-parsers";
|
|
inherit version src configureScript;
|
|
configureFlags = [ pname ];
|
|
nativeBuildInputs = [ which ocamlPackages.menhir ];
|
|
propagatedBuildInputs = [ alt-ergo-lib ] ++ (with ocamlPackages; [ camlzip psmt2-frontend ]);
|
|
}; in
|
|
|
|
ocamlPackages.buildDunePackage {
|
|
|
|
inherit pname version src configureScript;
|
|
|
|
configureFlags = [ pname ];
|
|
|
|
nativeBuildInputs = [ which ocamlPackages.menhir ];
|
|
buildInputs = [ alt-ergo-parsers ocamlPackages.cmdliner ];
|
|
|
|
meta = {
|
|
description = "High-performance theorem prover and SMT solver";
|
|
homepage = "https://alt-ergo.ocamlpro.com/";
|
|
license = lib.licenses.ocamlpro_nc;
|
|
maintainers = [ lib.maintainers.thoughtpolice ];
|
|
};
|
|
}
|