2017-03-04 06:33:30 +01:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, ocamlbuild, cstruct, result, findlib, ocaml_oasis }:
|
2017-02-17 23:18:48 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-03-25 10:27:11 +01:00
|
|
|
version = "0.4.0";
|
2017-02-17 23:18:48 +01:00
|
|
|
name = "ocaml-angstrom-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "inhabitedtype";
|
|
|
|
repo = "angstrom";
|
|
|
|
rev = "${version}";
|
2017-03-25 10:27:11 +01:00
|
|
|
sha256 = "019s3jwhnswa914bgj1fa6q67k0bl2ahqdaqfnavcbyii8763kh2";
|
2017-02-17 23:18:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2017-03-04 06:33:30 +01:00
|
|
|
buildInputs = [ ocaml ocaml_oasis findlib ocamlbuild ];
|
2017-02-17 23:18:48 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|