646c172193
GitOrigin-RevId: c478eaf416411a7dedf773185b6d5bfc966a80ae
35 lines
1,003 B
Nix
35 lines
1,003 B
Nix
{ lib, fetchFromGitHub, buildDunePackage, ocaml, dune-configurator
|
|
, mdx, qtest, result
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "iter";
|
|
version = "1.3";
|
|
|
|
useDune2 = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "c-cube";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256:0xgkplpbi41sw0yv1wfd12cfbybls6cal8qxddmd9x8khgk5s3vx";
|
|
};
|
|
|
|
buildInputs = [ dune-configurator ];
|
|
propagatedBuildInputs = [ result ];
|
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
|
checkInputs = [ mdx.bin qtest ];
|
|
|
|
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;
|
|
};
|
|
}
|