2021-01-15 22:18:51 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocsigen-toolkit, pgocaml_ppx, safepass, yojson
|
2020-04-24 23:36:52 +00:00
|
|
|
, cohttp-lwt-unix
|
|
|
|
, resource-pooling
|
2021-08-08 23:34:03 +00:00
|
|
|
, ocamlnet
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ocaml${ocaml.version}-ocsigen-start-${version}";
|
2021-08-08 23:34:03 +00:00
|
|
|
version = "4.3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib ];
|
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
|
|
|
|
|
|
|
patches = [ ./templates-dir.patch ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocsigen";
|
|
|
|
repo = "ocsigen-start";
|
|
|
|
rev = version;
|
2021-08-08 23:34:03 +00:00
|
|
|
sha256 = "0lkl59dwzyqq2lyr46fyjr27ms0fp9h59xfsn37faaavdd7v0h98";
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|