2020-03-06 06:42:04 +00:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, ocsigen-toolkit, pgocaml_ppx, macaque, safepass, yojson
|
2020-02-11 16:45:17 +00:00
|
|
|
, cohttp-lwt-unix
|
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}";
|
2020-03-06 06:42:04 +00:00
|
|
|
version = "2.16.1";
|
2017-03-04 13:44:15 +00:00
|
|
|
|
2020-03-06 06:42:04 +00:00
|
|
|
buildInputs = [ ocaml findlib ];
|
|
|
|
propagatedBuildInputs = [ pgocaml_ppx safepass ocsigen-toolkit yojson resource-pooling cohttp-lwt-unix ];
|
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;
|
2020-03-06 06:42:04 +00:00
|
|
|
sha256 = "1pzpyrd3vbhc7zvzh6bv44793ikx5bglpd5p4wk5jj65v1w39jwd";
|
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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|