depot/third_party/nixpkgs/pkgs/development/ocaml-modules/psmt2-frontend/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

35 lines
960 B
Nix

{ 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 {
version = "0.2";
name = "ocaml${ocaml.version}-psmt2-frontend-${version}";
src = fetchFromGitHub {
owner = "Coquera";
repo = "psmt2-frontend";
rev = version;
sha256 = "097zmbrx4gp2gnrxdmsm9lkkp5450gwi0blpxqy3833m6k5brx3n";
};
prefixKey = "-prefix ";
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ ocaml findlib menhir ];
createFindlibDestdir = true;
installFlags = [ "LIBDIR=$(OCAMLFIND_DESTDIR)" ];
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;
};
}