nixpkgs-suyu/pkgs/development/ocaml-modules/iter/default.nix

31 lines
933 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildDunePackage, ocaml, mdx, qtest, result }:
2016-02-17 18:54:23 +01:00
buildDunePackage rec {
pname = "iter";
version = "1.2.1";
2016-02-17 18:54:23 +01:00
src = fetchFromGitHub {
owner = "c-cube";
repo = pname;
2017-07-08 11:14:16 +02:00
rev = version;
sha256 = "0j2sg50byn0ppmf6l36ksip7zx1d3gv7sc4hbbxs2rmx39jr7vxh";
2016-02-17 18:54:23 +01:00
};
buildInputs = lib.optionals doCheck [ mdx.bin qtest ];
propagatedBuildInputs = [ result ];
2016-02-17 18:54:23 +01:00
doCheck = lib.versionAtLeast ocaml.version "4.04";
2016-02-17 18:54:23 +01: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;
2016-02-17 18:54:23 +01:00
};
}