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