2021-01-11 12:49:15 +00:00
|
|
|
{ stdenv, lib, fetchzip, ocaml, findlib, ocamlbuild }:
|
2017-02-22 18:21:29 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2017-06-14 19:04:23 +01:00
|
|
|
name = "ocaml${ocaml.version}-mparser-1.2.3";
|
2017-02-22 18:21:29 +00:00
|
|
|
src = fetchzip {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://github.com/cakeplus/mparser/archive/1.2.3.tar.gz";
|
2017-06-14 19:04:23 +01:00
|
|
|
sha256 = "1f8vpagmv0jdm50pxs2xwh2xcmvgaprx4kw871hlml9ahsflxgnw";
|
2017-02-22 18:21:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ];
|
|
|
|
|
|
|
|
configurePhase = "ocaml setup.ml -configure";
|
|
|
|
buildPhase = "ocaml setup.ml -build";
|
|
|
|
installPhase = "ocaml setup.ml -install";
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A simple monadic parser combinator OCaml library";
|
2021-01-11 12:49:15 +00:00
|
|
|
license = lib.licenses.lgpl21Plus;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/cakeplus/mparser";
|
2021-01-11 12:49:15 +00:00
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2017-02-22 18:21:29 +00:00
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|