10 lib.throwIf (lib.versionOlder ocaml.version "4.02")
11 "sosa is not available for OCaml ${ocaml.version}"
15 pname = "ocaml${ocaml.version}-sosa";
18 src = fetchFromGitHub {
21 rev = "sosa.${version}";
22 sha256 = "053hdv6ww0q4mivajj4iyp7krfvgq8zajq9d8x4mia4lid7j0dyk";
25 postPatch = lib.optionalString (lib.versionAtLeast ocaml.version "4.07") ''
26 for p in functors list_of of_mutable
28 substituteInPlace src/lib/$p.ml --replace Pervasives. Stdlib.
40 buildPhase = "make build";
42 createFindlibDestdir = true;
47 homepage = "http://www.hammerlab.org/docs/sosa/master/index.html";
48 description = "Sane OCaml String API";
49 license = licenses.isc;
50 maintainers = [ maintainers.alexfmpe ];