33 mkpath = p: "${p}/lib/ocaml/${ocaml.version}/site-lib/stublibs";
37 caml_ld_library_path = lib.concatMapStringsSep ":" mkpath [
54 buildDunePackage rec {
56 pname = "ocsigenserver";
58 minimalOCamlVersion = "4.08";
60 src = fetchFromGitHub {
62 repo = "ocsigenserver";
63 rev = "refs/tags/${version}";
64 hash = "sha256-T3bgPZpDO6plgebLJDBtBuR2eR/bN3o24UAUv1VwgtI=";
77 propagatedBuildInputs = [
95 dontAddStaticConfigureFlags = true;
96 configurePlatforms = [ ];
108 wrapProgram $out/bin/ocsigenserver \
109 --suffix CAML_LD_LIBRARY_PATH : "${caml_ld_library_path}"
112 dontPatchShebangs = true;
115 homepage = "http://ocsigen.org/ocsigenserver/";
116 description = "Full featured Web server";
118 A full featured Web server. It implements most features of the HTTP protocol, and has a very powerful extension mechanism that make very easy to plug your own OCaml modules for generating pages.
120 license = lib.licenses.lgpl21Only;
121 inherit (ocaml.meta) platforms;
122 maintainers = [ lib.maintainers.gal_bolle ];