depot/third_party/nixpkgs/pkgs/development/ocaml-modules/iter/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

30 lines
935 B
Nix

{ lib, fetchFromGitHub, buildDunePackage, ocaml, mdx, qtest, result }:
buildDunePackage rec {
pname = "iter";
version = "1.2.1";
src = fetchFromGitHub {
owner = "c-cube";
repo = pname;
rev = version;
sha256 = "0j2sg50byn0ppmf6l36ksip7zx1d3gv7sc4hbbxs2rmx39jr7vxh";
};
buildInputs = lib.optionals doCheck [ mdx.bin qtest ];
propagatedBuildInputs = [ result ];
doCheck = lib.versionAtLeast ocaml.version "4.04";
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;
};
}