16 lib.throwIf (lib.versionOlder ocaml.version "4.02" || lib.versionAtLeast ocaml.version "5.0")
17 "ocamlnet is not available for OCaml ${ocaml.version}"
21 pname = "ocaml${ocaml.version}-ocamlnet";
25 url = "http://download.camlcity.org/download/ocamlnet-${version}.tar.gz";
26 sha256 = "1vlwxjxr946gdl61a1d7yk859cijq45f60dhn54ik3w4g6cx33pr";
45 createFindlibDestdir = true;
48 dontAddStaticConfigureFlags = true;
49 configurePlatforms = [ ];
59 -datadir $out/lib/ocaml/${ocaml.version}/ocamlnet
69 homepage = "http://projects.camlcity.org/projects/ocamlnet.html";
70 description = "Library implementing Internet protocols (http, cgi, email, etc.) for OCaml";
71 license = "Most Ocamlnet modules are released under the zlib/png license. The HTTP server module Nethttpd is, however, under the GPL.";
72 inherit (ocaml.meta) platforms;
74 lib.maintainers.maggesi