2017-02-22 19:21:29 +01:00
|
|
|
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2017-06-14 20:04:23 +02:00
|
|
|
name = "ocaml${ocaml.version}-mparser-1.2.3";
|
2017-02-22 19:21:29 +01:00
|
|
|
src = fetchzip {
|
2017-06-14 20:04:23 +02:00
|
|
|
url = http://github.com/cakeplus/mparser/archive/1.2.3.tar.gz;
|
|
|
|
sha256 = "1f8vpagmv0jdm50pxs2xwh2xcmvgaprx4kw871hlml9ahsflxgnw";
|
2017-02-22 19:21:29 +01: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";
|
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
|
|
|
homepage = https://github.com/cakeplus/mparser;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|