1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 17:10:48 +00:00
nixpkgs/pkgs/development/ocaml-modules/mparser/default.nix

26 lines
768 B
Nix
Raw Normal View History

{ stdenv, fetchzip, ocaml, findlib, ocamlbuild }:
stdenv.mkDerivation {
2017-06-14 19:04:23 +01:00
name = "ocaml${ocaml.version}-mparser-1.2.3";
src = fetchzip {
url = https://github.com/cakeplus/mparser/archive/1.2.3.tar.gz;
2017-06-14 19:04:23 +01:00
sha256 = "1f8vpagmv0jdm50pxs2xwh2xcmvgaprx4kw871hlml9ahsflxgnw";
};
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;
};
}