nixpkgs/pkgs/development/ocaml-modules/angstrom/default.nix

29 lines
842 B
Nix
Raw Normal View History

2020-12-01 06:49:34 +00:00
{ lib, fetchFromGitHub, buildDunePackage, ocaml, ocaml-syntax-shims, alcotest, result, bigstringaf, ppx_let }:
2018-02-22 17:30:56 +00:00
buildDunePackage rec {
pname = "angstrom";
version = "0.15.0";
2020-12-01 06:49:34 +00:00
useDune2 = true;
minimumOCamlVersion = "4.04";
2017-02-17 22:18:48 +00:00
src = fetchFromGitHub {
owner = "inhabitedtype";
repo = pname;
rev = version;
sha256 = "1hmrkdcdlkwy7rxhngf3cv3sa61cznnd9p5lmqhx20664gx2ibrh";
2017-02-17 22:18:48 +00:00
};
checkInputs = [ alcotest ppx_let ];
2020-12-01 06:49:34 +00:00
buildInputs = [ ocaml-syntax-shims ];
propagatedBuildInputs = [ bigstringaf result ];
doCheck = lib.versionAtLeast ocaml.version "4.05";
2017-02-17 22:18:48 +00:00
meta = {
homepage = "https://github.com/inhabitedtype/angstrom";
2017-02-17 22:18:48 +00:00
description = "OCaml parser combinators built for speed and memory efficiency";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ sternenseemann ];
2017-02-17 22:18:48 +00:00
};
}