summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/iter/default.nix
blob: ed1f44a3b0fc073476f608270dc9822857ce0d78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
  lib,
  fetchurl,
  buildDunePackage,
  mdx,
  ounit2,
  qcheck-core,
}:

buildDunePackage (finalAttrs: {
  pname = "iter";
  version = "1.9";

  minimalOCamlVersion = "4.08";

  src = fetchurl {
    url = "https://github.com/c-cube/iter/releases/download/v${finalAttrs.version}/iter-${finalAttrs.version}.tbz";
    hash = "sha256-26nluxUuDQ2wBUw2sqlHZ0eihKdzjxXxGVo+IDXH6Wg=";
  };

  doCheck = true;
  nativeCheckInputs = [ mdx.bin ];
  checkInputs = [
    ounit2
    qcheck-core
  ];

  meta = {
    homepage = "https://github.com/c-cube/sequence";
    description = "Simple sequence (iterator) datatype and combinators";
    longDescription = ''
      Simple sequence datatype, intended to transfer a finite number of
      elements from one data structure to another. Some transformations on sequences,
      like `filter`, `map`, `take`, `drop` and `append` can be performed before the
      sequence is iterated/folded on.
    '';
    license = lib.licenses.bsd2;
  };
})