Skip to content

Commit

Permalink
Merge pull request #40884 from vbgl/ocaml-earley-ocaml
Browse files Browse the repository at this point in the history
ocamlPackages.earley_ocaml: init at 1.0.2
  • Loading branch information
srhb committed May 24, 2018
2 parents 7ba417a + 19f768a commit 8d1edde
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
30 changes: 30 additions & 0 deletions pkgs/development/ocaml-modules/earley_ocaml/default.nix
@@ -0,0 +1,30 @@
{ stdenv, fetchFromGitHub, which, ocaml, findlib, ocamlbuild, earley }:

stdenv.mkDerivation rec {
version = "1.0.2";
name = "ocaml${ocaml.version}-earley_ocaml-${version}";
src = fetchFromGitHub {
owner = "rlepigre";
repo = "ocaml-earley-ocaml";
rev = "ocaml-earley-ocaml_${version}";
sha256 = "0f8kr49r2xfs7cbzps4r9i92ckhwssaiydam846jrky3z5djn2jc";
};

buildInputs = [ which ocaml findlib ocamlbuild ];

propagatedBuildInputs = [ earley ];

preBuild = "make";

createFindlibDestdir = true;

installFlags = [ "BINDIR=$(out)/bin" ];

meta = {
description = "Extensible OCaml parser to be used with Earley";
license = stdenv.lib.licenses.cecill-b;
maintainers = [ stdenv.lib.maintainers.vbgl ];
inherit (ocaml.meta) platforms;
inherit (src.meta) homepage;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/ocaml-packages.nix
Expand Up @@ -217,6 +217,8 @@ let

earley = callPackage ../development/ocaml-modules/earley { };

earley_ocaml = callPackage ../development/ocaml-modules/earley_ocaml { };

easy-format = callPackage ../development/ocaml-modules/easy-format { };

eliom = callPackage ../development/ocaml-modules/eliom { };
Expand Down

0 comments on commit 8d1edde

Please sign in to comment.