2018-06-25 14:36:06 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, ocaml, findlib, menhir }:
|
|
|
|
|
|
|
|
if !stdenv.lib.versionAtLeast ocaml.version "4.03"
|
|
|
|
then throw "psmt2-frontend is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-01-28 03:39:29 +00:00
|
|
|
version = "0.2";
|
2018-06-25 14:36:06 +01:00
|
|
|
name = "ocaml${ocaml.version}-psmt2-frontend-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Coquera";
|
|
|
|
repo = "psmt2-frontend";
|
|
|
|
rev = version;
|
2019-01-28 03:39:29 +00:00
|
|
|
sha256 = "097zmbrx4gp2gnrxdmsm9lkkp5450gwi0blpxqy3833m6k5brx3n";
|
2018-06-25 14:36:06 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
prefixKey = "-prefix ";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ ocaml findlib menhir ];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2019-11-05 01:10:31 +00:00
|
|
|
installFlags = [ "LIBDIR=$(OCAMLFIND_DESTDIR)" ];
|
2018-06-25 14:36:06 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A simple parser and type-checker for polomorphic extension of the SMT-LIB 2 language";
|
|
|
|
license = stdenv.lib.licenses.asl20;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|