Skip to content

Commit

Permalink
ocaml-angstrom: init at 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sternenseemann authored and vbgl committed Feb 19, 2017
1 parent 1ae9b50 commit d738ac4
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
26 changes: 26 additions & 0 deletions pkgs/development/ocaml-modules/angstrom/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{ stdenv, fetchFromGitHub, ocaml, cstruct, result, findlib, ocaml_oasis }:

stdenv.mkDerivation rec {
version = "0.3.0";
name = "ocaml-angstrom-${version}";

src = fetchFromGitHub {
owner = "inhabitedtype";
repo = "angstrom";
rev = "${version}";
sha256 = "1x9pvy5vw98ns4pspj7i10pmgqyngn4v4cdlz5pbvwbrpwpn090q";
};

createFindlibDestdir = true;

buildInputs = [ ocaml ocaml_oasis findlib ];
propagatedBuildInputs = [ result cstruct ];

meta = {
homepage = https://github.com/inhabitedtype/angstrom;
description = "OCaml parser combinators built for speed and memory efficiency";
license = stdenv.lib.licenses.bsd3;
maintainers = with stdenv.lib.maintainers; [ sternenseemann ];
inherit (ocaml.meta) platforms;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/ocaml-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ let

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

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

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

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

0 comments on commit d738ac4

Please sign in to comment.