2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml, alcotest, result, bigstringaf }:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "angstrom";
|
2020-07-18 16:06:22 +00:00
|
|
|
version = "0.14.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-03 17:38:23 +00:00
|
|
|
minimumOCamlVersion = "4.04";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "inhabitedtype";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-07-18 16:06:22 +00:00
|
|
|
sha256 = "1l69y0qspgi7kgrphyh7718hjb2sml1a9lljkp65bkqmmmi6ybly";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ alcotest ];
|
|
|
|
propagatedBuildInputs = [ bigstringaf result ];
|
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.05";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/inhabitedtype/angstrom";
|
|
|
|
description = "OCaml parser combinators built for speed and memory efficiency";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ sternenseemann ];
|
|
|
|
};
|
|
|
|
}
|