diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2019-09-20 05:29:05 +0000 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2019-09-20 05:29:05 +0000 |
commit | 424c20414a310fbefa0c32fe5341bc38aa4134d2 (patch) | |
tree | 83e9ef12b79b0567f291d3b4164bda38791c2cc2 /pkgs/development/ocaml-modules/iter | |
parent | 59a07abdb2ce466d37c745e3daa19649e35c2f86 (diff) |
ocamlPackages.containers: 1.4 → 2.6.1
ocamlPackages.sequence/iter: 1.1 → 1.2.1
Ensures compatibility with OCaml 4.08
Diffstat (limited to 'pkgs/development/ocaml-modules/iter')
-rw-r--r-- | pkgs/development/ocaml-modules/iter/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/iter/default.nix b/pkgs/development/ocaml-modules/iter/default.nix new file mode 100644 index 000000000000..eb2ca1409ab8 --- /dev/null +++ b/pkgs/development/ocaml-modules/iter/default.nix @@ -0,0 +1,30 @@ +{ 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 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; + }; +} |