2023-05-26 06:38:24 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
2022-11-11 20:07:58 +00:00
|
|
|
, mdx, ounit2, qcheck-core
|
2020-11-30 07:18:38 +00:00
|
|
|
}:
|
2016-02-17 17:54:23 +00:00
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildDunePackage rec {
|
2019-09-20 05:29:05 +00:00
|
|
|
pname = "iter";
|
2023-05-26 06:38:24 +00:00
|
|
|
version = "1.7";
|
2020-11-30 07:18:38 +00:00
|
|
|
|
2023-05-26 06:38:24 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2023-04-05 04:17:45 +00:00
|
|
|
|
2023-05-26 06:38:24 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/c-cube/iter/releases/download/v${version}/iter-${version}.tbz";
|
|
|
|
hash = "sha256-vtcSnPMxpBwDve1zsR6cEnUsyu3JELPt2Kwu4OEEtzA=";
|
2016-02-17 17:54:23 +00:00
|
|
|
};
|
|
|
|
|
2023-05-26 06:38:24 +00:00
|
|
|
doCheck = true;
|
2022-03-01 15:42:22 +00:00
|
|
|
nativeCheckInputs = [ mdx.bin ];
|
|
|
|
checkInputs = [ ounit2 qcheck-core ];
|
2016-02-17 17:54:23 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/c-cube/sequence";
|
2016-02-17 17:54:23 +00:00
|
|
|
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.
|
|
|
|
'';
|
2019-09-20 05:29:05 +00:00
|
|
|
license = lib.licenses.bsd2;
|
2016-02-17 17:54:23 +00:00
|
|
|
};
|
|
|
|
}
|