2020-04-16 07:58:55 +01:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml, alcotest, result, bigstringaf }:
|
2018-02-22 17:30:56 +00:00
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "angstrom";
|
2020-04-27 11:59:18 +01:00
|
|
|
version = "0.14.1";
|
2018-11-05 10:21:46 +00:00
|
|
|
|
2020-04-14 10:27:12 +01: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-04-27 11:59:18 +01:00
|
|
|
sha256 = "1l69y0qspgi7kgrphyh7718hjb2sml1a9lljkp65bkqmmmi6ybly";
|
2017-02-17 22:18:48 +00:00
|
|
|
};
|
|
|
|
|
2020-04-16 07:58:55 +01:00
|
|
|
checkInputs = [ alcotest ];
|
2018-07-22 07:15:10 +01:00
|
|
|
propagatedBuildInputs = [ bigstringaf result ];
|
2020-04-16 07:58:55 +01:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.05";
|
2017-02-17 22:18:48 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01: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 07:58:55 +01:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ sternenseemann ];
|
2017-02-17 22:18:48 +00:00
|
|
|
};
|
|
|
|
}
|