diff --git a/pkgs/development/ocaml-modules/angstrom/default.nix b/pkgs/development/ocaml-modules/angstrom/default.nix new file mode 100644 index 000000000000..56509ab5786a --- /dev/null +++ b/pkgs/development/ocaml-modules/angstrom/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 73669c58b553..941b8ebd65de 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -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 { };