2021-01-15 22:18:51 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocsigen-toolkit, pgocaml_ppx, safepass, yojson
|
2022-03-05 16:20:37 +00:00
|
|
|
, cohttp-lwt-unix, eliom
|
2020-04-24 23:36:52 +00:00
|
|
|
, resource-pooling
|
2021-08-08 23:34:03 +00:00
|
|
|
, ocamlnet
|
2022-04-27 09:35:20 +00:00
|
|
|
, ocsigen-ppx-rpc
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "ocaml${ocaml.version}-ocsigen-start";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "6.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib eliom ];
|
2022-04-27 09:35:20 +00:00
|
|
|
buildInputs = [ ocsigen-ppx-rpc ];
|
2021-08-08 23:34:03 +00:00
|
|
|
propagatedBuildInputs = [ pgocaml_ppx safepass ocsigen-toolkit yojson resource-pooling cohttp-lwt-unix ocamlnet ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
patches = [ ./templates-dir.patch ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocsigen";
|
|
|
|
repo = "ocsigen-start";
|
|
|
|
rev = version;
|
2022-04-27 09:35:20 +00:00
|
|
|
sha256 = "sha256:097bjaxvb1canilmqr8ay3ihig2msq7z8mi0g0rnbciikj1jsrym";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-08-08 23:34:03 +00:00
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $OCAMLFIND_DESTDIR
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +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.
|
|
|
|
'';
|
2021-08-08 23:34:03 +00:00
|
|
|
license = lib.licenses.lgpl21Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit (ocaml.meta) platforms;
|
2021-01-15 22:18:51 +00:00
|
|
|
maintainers = [ lib.maintainers.gal_bolle ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|