2018-04-01 08:00:07 +01:00
|
|
|
{ stdenv, fetchurl, buildOcaml, ocsigen-toolkit, eliom, ocaml_pcre, pgocaml, macaque, safepass, yojson, ocsigen_deriving, ocsigen_server
|
|
|
|
, js_of_ocaml-camlp4
|
|
|
|
}:
|
2017-03-04 13:44:15 +00:00
|
|
|
|
|
|
|
buildOcaml rec
|
|
|
|
{
|
|
|
|
name = "ocsigen-start";
|
2018-04-01 08:00:07 +01:00
|
|
|
version = "1.1.0";
|
2017-03-04 13:44:15 +00:00
|
|
|
|
2018-04-01 08:00:07 +01:00
|
|
|
buildInputs = [ eliom js_of_ocaml-camlp4 ];
|
|
|
|
propagatedBuildInputs = [ pgocaml macaque safepass ocaml_pcre ocsigen-toolkit yojson ocsigen_deriving ocsigen_server ];
|
2017-03-04 13:44:15 +00:00
|
|
|
|
|
|
|
patches = [ ./templates-dir.patch ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace "src/os_db.ml" --replace "citext" "text"
|
|
|
|
'';
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ocsigen/${name}/archive/${version}.tar.gz";
|
2018-04-01 08:00:07 +01:00
|
|
|
sha256 = "09cw6qzcld0m1qm66mbjg9gw8l6dynpw3fzhm3kfx5ldh0afgvjq";
|
2017-03-04 13:44:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
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;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.gal_bolle ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|