2021-01-11 12:49:15 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocsigen-toolkit, pgocaml_ppx, safepass, yojson
|
2022-02-22 09:59:04 +00:00
|
|
|
, cohttp-lwt-unix, eliom
|
2019-01-14 22:52:20 +00:00
|
|
|
, resource-pooling
|
2021-08-01 08:53:09 +00:00
|
|
|
, ocamlnet
|
2022-04-21 04:37:46 +00:00
|
|
|
, ocsigen-ppx-rpc
|
2018-04-01 07:00:07 +00:00
|
|
|
}:
|
2017-03-04 13:44:15 +00:00
|
|
|
|
2019-08-10 16:40:51 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-11-25 11:39:57 +00:00
|
|
|
pname = "ocaml${ocaml.version}-ocsigen-start";
|
2022-04-21 04:37:46 +00:00
|
|
|
version = "6.0.1";
|
2017-03-04 13:44:15 +00:00
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib eliom ];
|
2022-04-21 04:37:46 +00:00
|
|
|
buildInputs = [ ocsigen-ppx-rpc ];
|
2021-08-01 08:53:09 +00:00
|
|
|
propagatedBuildInputs = [ pgocaml_ppx safepass ocsigen-toolkit yojson resource-pooling cohttp-lwt-unix ocamlnet ];
|
2017-03-04 13:44:15 +00:00
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2017-03-04 13:44:15 +00:00
|
|
|
patches = [ ./templates-dir.patch ];
|
|
|
|
|
2019-01-14 22:52:20 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocsigen";
|
2019-08-10 16:40:51 +00:00
|
|
|
repo = "ocsigen-start";
|
2019-01-14 22:52:20 +00:00
|
|
|
rev = version;
|
2022-04-21 04:37:46 +00:00
|
|
|
sha256 = "sha256:097bjaxvb1canilmqr8ay3ihig2msq7z8mi0g0rnbciikj1jsrym";
|
2017-03-04 13:44:15 +00:00
|
|
|
};
|
|
|
|
|
2021-08-01 08:53:09 +00:00
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $OCAMLFIND_DESTDIR
|
|
|
|
'';
|
|
|
|
|
2017-03-04 13:44:15 +00:00
|
|
|
meta = {
|
2020-04-01 01:11:51 +00: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-08-01 08:53:09 +00:00
|
|
|
license = lib.licenses.lgpl21Only;
|
2019-08-10 16:40:51 +00: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
|
|
|
};
|
|
|
|
|
|
|
|
}
|