diff --git a/pkgs/development/ocaml-modules/markup/default.nix b/pkgs/development/ocaml-modules/markup/default.nix new file mode 100644 index 00000000000..ed285dc5852 --- /dev/null +++ b/pkgs/development/ocaml-modules/markup/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchurl, ocaml, findlib, uutf, lwt }: + +stdenv.mkDerivation rec { + pname = "markup"; + version = "0.7.2"; + name = "${pname}-${version}"; + + src = fetchurl { + url = "http://github.com/aantron/markup.ml/archive/${version}.tar.gz"; + sha256 = "0d3wi22v7h0iqzq8dgl0g4fj2wb67gvmbzdckacifghinrx762k3"; + }; + + buildInputs = [ocaml findlib]; + + installPhase = "make ocamlfind-install"; + + propagatedBuildInputs = [uutf lwt]; + + createFindlibDestdir = true; + + meta = with stdenv.lib; { + homepage = https://github.com/aantron/markup.ml/; + description = "A pair of best-effort parsers implementing the HTML5 and XML specifications"; + license = licenses.bsd3; + platforms = ocaml.meta.platforms or []; + maintainers = with maintainers; [ + gal_bolle + ]; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index dfa5560a185..ea416f730e3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5007,6 +5007,8 @@ in magick = callPackage ../development/ocaml-modules/magick { }; + markup = callPackage ../development/ocaml-modules/markup { lwt = ocaml_lwt; }; + menhir = callPackage ../development/ocaml-modules/menhir { }; merlin = callPackage ../development/tools/ocaml/merlin { };