2020-11-30 07:18:38 +00:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml, dune-configurator
|
|
|
|
, mdx, qtest, result
|
|
|
|
}:
|
2016-02-17 17:54:23 +00:00
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildDunePackage rec {
|
2019-09-20 06:29:05 +01:00
|
|
|
pname = "iter";
|
|
|
|
version = "1.2.1";
|
2016-02-17 17:54:23 +00:00
|
|
|
|
2020-11-30 07:18:38 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
2016-02-17 17:54:23 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "c-cube";
|
2018-11-05 10:21:46 +00:00
|
|
|
repo = pname;
|
2017-07-08 10:14:16 +01:00
|
|
|
rev = version;
|
2019-09-20 06:29:05 +01:00
|
|
|
sha256 = "0j2sg50byn0ppmf6l36ksip7zx1d3gv7sc4hbbxs2rmx39jr7vxh";
|
2016-02-17 17:54:23 +00:00
|
|
|
};
|
|
|
|
|
2020-11-30 07:18:38 +00:00
|
|
|
buildInputs = [ dune-configurator ];
|
2018-08-07 20:28:46 +01:00
|
|
|
propagatedBuildInputs = [ result ];
|
2016-02-17 17:54:23 +00:00
|
|
|
|
2020-09-27 16:11:54 +01:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.07";
|
2020-11-30 07:18:38 +00:00
|
|
|
checkInputs = [ mdx.bin qtest ];
|
2016-02-17 17:54:23 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01: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 06:29:05 +01:00
|
|
|
license = lib.licenses.bsd2;
|
2016-02-17 17:54:23 +00:00
|
|
|
};
|
|
|
|
}
|