2020-09-29 13:02:37 +00:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml, alcotest, result, bigstringaf, ppx_let }:
|
2018-02-22 17:30:56 +00:00
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "angstrom";
|
2020-09-29 13:02:37 +00:00
|
|
|
version = "0.15.0";
|
2018-11-05 10:21:46 +00:00
|
|
|
|
2020-04-14 09:27:12 +00:00
|
|
|
minimumOCamlVersion = "4.04";
|
2017-02-17 22:18:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "inhabitedtype";
|
2018-11-05 10:21:46 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-09-29 13:02:37 +00:00
|
|
|
sha256 = "1hmrkdcdlkwy7rxhngf3cv3sa61cznnd9p5lmqhx20664gx2ibrh";
|
2017-02-17 22:18:48 +00:00
|
|
|
};
|
|
|
|
|
2020-09-29 13:02:37 +00:00
|
|
|
checkInputs = [ alcotest ppx_let ];
|
2018-07-22 06:15:10 +00:00
|
|
|
propagatedBuildInputs = [ bigstringaf result ];
|
2020-04-16 06:58:55 +00:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.05";
|
2017-02-17 22:18:48 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/inhabitedtype/angstrom";
|
2017-02-17 22:18:48 +00:00
|
|
|
description = "OCaml parser combinators built for speed and memory efficiency";
|
2020-04-16 06:58:55 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ sternenseemann ];
|
2017-02-17 22:18:48 +00:00
|
|
|
};
|
|
|
|
}
|