1{ lib, fetchurl, buildDunePackage
2, mdx, ounit2, qcheck-core
3}:
4
5buildDunePackage rec {
6 pname = "iter";
7 version = "1.7";
8
9 minimalOCamlVersion = "4.08";
10
11 src = fetchurl {
12 url = "https://github.com/c-cube/iter/releases/download/v${version}/iter-${version}.tbz";
13 hash = "sha256-vtcSnPMxpBwDve1zsR6cEnUsyu3JELPt2Kwu4OEEtzA=";
14 };
15
16 doCheck = true;
17 nativeCheckInputs = [ mdx.bin ];
18 checkInputs = [ ounit2 qcheck-core ];
19
20 meta = {
21 homepage = "https://github.com/c-cube/sequence";
22 description = "Simple sequence (iterator) datatype and combinators";
23 longDescription = ''
24 Simple sequence datatype, intended to transfer a finite number of
25 elements from one data structure to another. Some transformations on sequences,
26 like `filter`, `map`, `take`, `drop` and `append` can be performed before the
27 sequence is iterated/folded on.
28 '';
29 license = lib.licenses.bsd2;
30 };
31}