2024-01-02 11:29:13 +00:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml, ocaml-syntax-shims, alcotest, bigstringaf, ppx_let, gitUpdater }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "angstrom";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "0.16.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
minimalOCamlVersion = "4.04";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "inhabitedtype";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-09-26 11:04:55 +00:00
|
|
|
hash = "sha256-EPqDK+7RU2vHEHvuoTXb8V2FkdXQ6tGu0ghbNPS3gZ4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ alcotest ppx_let ];
|
2020-12-03 08:41:04 +00:00
|
|
|
buildInputs = [ ocaml-syntax-shims ];
|
2024-01-02 11:29:13 +00:00
|
|
|
propagatedBuildInputs = [ bigstringaf ];
|
2022-09-09 14:08:57 +00:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
passthru.updateScript = gitUpdater { };
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|