2023-07-15 17:15:38 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
2022-11-21 17:40:18 +00:00
|
|
|
, mdx, ounit2, qcheck-core
|
2020-12-07 07:45:13 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "iter";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.8";
|
2020-12-07 07:45:13 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/c-cube/iter/releases/download/v${version}/iter-${version}.tbz";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-+HOcoFrpxLqKogwNQZfnRAnytlmhfxJzDUKvH9n0MCM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
doCheck = true;
|
2023-02-09 11:40:11 +00:00
|
|
|
nativeCheckInputs = [ mdx.bin ];
|
|
|
|
checkInputs = [ ounit2 qcheck-core ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|