nixpkgs/pkgs/development/ocaml-modules/mparser/default.nix
Vincent Laporte cb6d15549a ocamlPackages.mparser: init at 1.2.1
MParser is a simple monadic parser combinator library for OCaml.

Homepage: https://github.com/cakeplus/mparser/
2017-02-22 19:23:06 +00:00

26 lines
767 B
Nix

{ 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;
};
}