2014-10-14 13:14:57 +02:00
|
|
|
{stdenv, fetchurl, ocaml, findlib, which, ocaml_react, ocaml_ssl,
|
2015-05-15 16:35:42 +02:00
|
|
|
ocaml_lwt, ocamlnet, ocaml_pcre, cryptokit, tyxml, ipaddr, zlib,
|
2015-09-16 18:08:57 +02:00
|
|
|
libev, openssl, ocaml_sqlite3, tree, uutf, makeWrapper
|
|
|
|
}:
|
|
|
|
|
|
|
|
let mkpath = p: n:
|
|
|
|
let v = stdenv.lib.getVersion ocaml; in
|
|
|
|
"${p}/lib/ocaml/${v}/site-lib/${n}";
|
|
|
|
in
|
2014-06-08 12:13:31 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-10-14 13:14:57 +02:00
|
|
|
name = "ocsigenserver-2.5";
|
2015-05-15 16:35:42 +02:00
|
|
|
|
2014-06-08 12:13:31 +02:00
|
|
|
src = fetchurl {
|
2014-10-14 13:14:57 +02:00
|
|
|
url = https://github.com/ocsigen/ocsigenserver/archive/2.5.tar.gz;
|
|
|
|
sha256 = "0ayzlzjwg199va4sclsldlcp0dnwdj45ahhg9ckb51m28c2pw46r";
|
2014-06-08 12:13:31 +02:00
|
|
|
};
|
|
|
|
|
2014-10-14 13:14:57 +02:00
|
|
|
buildInputs = [ocaml which findlib ocaml_react ocaml_ssl ocaml_lwt
|
2015-05-15 16:35:42 +02:00
|
|
|
ocamlnet ocaml_pcre cryptokit tyxml ipaddr zlib libev openssl
|
2015-09-16 18:08:57 +02:00
|
|
|
ocaml_sqlite3 tree uutf makeWrapper ];
|
2014-06-08 12:13:31 +02:00
|
|
|
|
|
|
|
configureFlags = "--root $(out) --prefix /";
|
|
|
|
|
|
|
|
dontAddPrefix = true;
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2015-05-15 16:35:42 +02:00
|
|
|
postFixup =
|
2014-06-08 12:13:31 +02:00
|
|
|
''
|
|
|
|
rm -rf $out/var/run
|
2015-09-16 18:08:57 +02:00
|
|
|
wrapProgram $out/bin/ocsigenserver \
|
|
|
|
--prefix CAML_LD_LIBRARY_PATH : "${mkpath ocaml_ssl "ssl"}:${mkpath ocaml_lwt "lwt"}:${mkpath ocamlnet "netsys"}:${mkpath ocamlnet "netstring"}:${mkpath ocaml_pcre "pcre"}:${mkpath cryptokit "cryptokit"}:${mkpath ocaml_sqlite3 "sqlite3"}"
|
2014-06-08 12:13:31 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
dontPatchShebangs = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://ocsigen.org/ocsigenserver/;
|
2014-09-06 12:45:20 +02:00
|
|
|
description = "A full featured Web server";
|
2014-09-06 10:44:20 +02:00
|
|
|
longDescription =''
|
|
|
|
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.
|
|
|
|
'';
|
2014-09-18 12:37:49 +02:00
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
2014-06-08 12:13:31 +02:00
|
|
|
platforms = ocaml.meta.platforms;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.gal_bolle ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|