diff --git a/pkgs/development/ocaml-modules/mparser/default.nix b/pkgs/development/ocaml-modules/mparser/default.nix new file mode 100644 index 00000000000..6490eeb2f38 --- /dev/null +++ b/pkgs/development/ocaml-modules/mparser/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchzip, ocaml, findlib, ocamlbuild }: + +stdenv.mkDerivation { + name = "ocaml${ocaml.version}-mparser-1.2.1"; + src = fetchzip { + url = http://github.com/cakeplus/mparser/archive/1.2.1.tar.gz; + sha256 = "1g1r3p0inmm5xwh9i5mrc4s414b0j8l13a66hpvwhqcpp6qglfh3"; + }; + + 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; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index b980e053020..f7a91767326 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -281,6 +281,8 @@ let mlgmpidl = callPackage ../development/ocaml-modules/mlgmpidl { }; + mparser = callPackage ../development/ocaml-modules/mparser { }; + mtime = callPackage ../development/ocaml-modules/mtime { }; nocrypto = callPackage ../development/ocaml-modules/nocrypto {