1 { stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild }:
5 pname = "ocaml${ocaml.version}-seq";
8 license = lib.licenses.lgpl21;
9 maintainers = [ lib.maintainers.vbgl ];
10 homepage = "https://github.com/c-cube/seq";
11 inherit (ocaml.meta) platforms;
14 } // (if lib.versionOlder ocaml.version "4.07" then {
16 src = fetchFromGitHub {
20 sha256 = "1cjpsc7q76yfgq9iyvswxgic4kfq2vcqdlmxjdjgd4lx87zvcwrv";
23 nativeBuildInputs = [ ocaml findlib ocamlbuild ];
26 createFindlibDestdir = true;
28 meta.description = "Compatibility package for OCaml’s standard iterator type starting from 4.07";
37 mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib/seq
38 cp META $out/lib/ocaml/${ocaml.version}/site-lib/seq
41 meta.description = "dummy backward-compatibility package for iterators";