2019-01-14 23:52:20 +01:00
|
|
|
{ stdenv, fetchFromGitHub, buildOcaml, ocsigen-toolkit, eliom, ocaml_pcre, pgocaml, macaque, safepass, yojson, ocsigen_deriving, ocsigen_server
|
2018-04-01 09:00:07 +02:00
|
|
|
, js_of_ocaml-camlp4
|
2019-01-14 23:52:20 +01:00
|
|
|
, resource-pooling
|
2018-04-01 09:00:07 +02:00
|
|
|
}:
|
2017-03-04 14:44:15 +01:00
|
|
|
|
|
|
|
buildOcaml rec
|
|
|
|
{
|
|
|
|
name = "ocsigen-start";
|
2019-01-18 02:57:11 +01:00
|
|
|
version = "1.5.0";
|
2017-03-04 14:44:15 +01:00
|
|
|
|
2018-04-01 09:00:07 +02:00
|
|
|
buildInputs = [ eliom js_of_ocaml-camlp4 ];
|
2019-01-14 23:52:20 +01:00
|
|
|
propagatedBuildInputs = [ pgocaml macaque safepass ocaml_pcre ocsigen-toolkit yojson ocsigen_deriving ocsigen_server resource-pooling ];
|
2017-03-04 14:44:15 +01:00
|
|
|
|
|
|
|
patches = [ ./templates-dir.patch ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace "src/os_db.ml" --replace "citext" "text"
|
|
|
|
'';
|
|
|
|
|
2019-01-14 23:52:20 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocsigen";
|
|
|
|
repo = name;
|
|
|
|
rev = version;
|
2019-01-18 02:57:11 +01:00
|
|
|
sha256 = "07478hz5jhxb242hfr808516k81vdbzj4j6cycvls3b9lzbyszha";
|
2017-03-04 14:44:15 +01: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;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.gal_bolle ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|