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