2021-01-11 12:49:15 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocsigen-toolkit, pgocaml_ppx, 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-06-08 07:01:44 +01:00
|
|
|
version = "2.18.0";
|
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;
|
2020-10-15 07:11:09 +01: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-06-08 07:01:44 +01:00
|
|
|
sha256 = "0wvh4c26g6qd6i1fryilcqz9giz7v6pnhc90sknhxh6jmwrbjl50";
|
2017-03-04 13:44:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://ocsigen.org/ocsigen-start";
|
2017-03-04 13:44:15 +00:00
|
|
|
description = "Eliom application skeleton";
|
|
|
|
longDescription =''
|
|
|
|
An Eliom application skeleton, ready to use to build your own application with users, (pre)registration, notifications, etc.
|
|
|
|
'';
|
2021-01-11 12:49:15 +00:00
|
|
|
license = lib.licenses.lgpl21;
|
2019-08-10 17:40:51 +01:00
|
|
|
inherit (ocaml.meta) platforms;
|
2021-01-11 12:49:15 +00:00
|
|
|
maintainers = [ lib.maintainers.gal_bolle ];
|
2017-03-04 13:44:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|