2019-08-10 17:40:51 +01:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, ocsigen-toolkit, eliom, ocaml_pcre, pgocaml, macaque, safepass, yojson, ocsigen_deriving, ocsigen_server
|
2019-10-13 06:10:36 +01:00
|
|
|
, js_of_ocaml-camlp4, lwt_camlp4
|
2019-01-14 22:52:20 +00:00
|
|
|
, resource-pooling
|
2018-04-01 08:00:07 +01:00
|
|
|
}:
|
2017-03-04 13:44:15 +00:00
|
|
|
|
2019-08-10 17:40:51 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ocaml${ocaml.version}-ocsigen-start-${version}";
|
|
|
|
version = "1.8.0";
|
2017-03-04 13:44:15 +00:00
|
|
|
|
2019-10-13 06:10:36 +01:00
|
|
|
buildInputs = [ ocaml findlib eliom js_of_ocaml-camlp4 lwt_camlp4 ];
|
2019-01-14 22:52:20 +00:00
|
|
|
propagatedBuildInputs = [ pgocaml macaque safepass ocaml_pcre ocsigen-toolkit yojson ocsigen_deriving ocsigen_server resource-pooling ];
|
2017-03-04 13:44:15 +00:00
|
|
|
|
|
|
|
patches = [ ./templates-dir.patch ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace "src/os_db.ml" --replace "citext" "text"
|
|
|
|
'';
|
2019-08-10 17:40:51 +01:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
2017-03-04 13:44:15 +00:00
|
|
|
|
2019-01-14 22:52:20 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocsigen";
|
2019-08-10 17:40:51 +01:00
|
|
|
repo = "ocsigen-start";
|
2019-01-14 22:52:20 +00:00
|
|
|
rev = version;
|
2019-08-10 17:40:51 +01:00
|
|
|
sha256 = "0h5gp06vxy6jpppz1x840gyf9viiy7lic7spx7fxldpy2jpv058s";
|
2017-03-04 13:44:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://ocsigen.org/ocsigen-start;
|
|
|
|
description = "Eliom application skeleton";
|
|
|
|
longDescription =''
|
|
|
|
An Eliom application skeleton, ready to use to build your own application with users, (pre)registration, notifications, etc.
|
|
|
|
'';
|
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
2019-08-10 17:40:51 +01:00
|
|
|
inherit (ocaml.meta) platforms;
|
2017-03-04 13:44:15 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.gal_bolle ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|