2021-01-11 13:49:15 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild, menhir }:
|
2017-01-28 18:37:44 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ocaml${ocaml.version}-dolmen-${version}";
|
|
|
|
version = "0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Gbury";
|
|
|
|
repo = "dolmen";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1b9mf8p6mic0n76acx8x82hhgm2n40sdv0jri95im65l52223saf";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ];
|
|
|
|
propagatedBuildInputs = [ menhir ];
|
|
|
|
|
2019-10-27 14:03:25 +01:00
|
|
|
makeFlags = [ "-C" "src" ];
|
2017-01-28 18:37:44 +01:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An OCaml library providing clean and flexible parsers for input languages";
|
2021-01-11 13:49:15 +01:00
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2017-01-28 18:37:44 +01:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|