69 lines
1.3 KiB
Nix
69 lines
1.3 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
ocaml,
|
|
findlib,
|
|
ocsigen-toolkit,
|
|
pgocaml_ppx,
|
|
safepass,
|
|
yojson,
|
|
cohttp-lwt-unix,
|
|
eliom,
|
|
resource-pooling,
|
|
ocsigen-ppx-rpc,
|
|
js_of_ocaml-ppx_deriving_json,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "ocaml${ocaml.version}-ocsigen-start";
|
|
version = "8.0.0";
|
|
|
|
nativeBuildInputs = [
|
|
ocaml
|
|
findlib
|
|
eliom
|
|
];
|
|
buildInputs = [
|
|
ocsigen-ppx-rpc
|
|
js_of_ocaml-ppx_deriving_json
|
|
];
|
|
propagatedBuildInputs = [
|
|
pgocaml_ppx
|
|
safepass
|
|
ocsigen-toolkit
|
|
yojson
|
|
resource-pooling
|
|
cohttp-lwt-unix
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
patches = [
|
|
./templates-dir.patch
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ocsigen";
|
|
repo = "ocsigen-start";
|
|
rev = "b64139e365ab1d244033133629431f7a73e3e054";
|
|
hash = "sha256-N6bPEibcN7WM23hSK4260+hZWo9PSRoSLjemF7m/9Ic=";
|
|
};
|
|
|
|
preInstall = ''
|
|
mkdir -p $OCAMLFIND_DESTDIR
|
|
'';
|
|
|
|
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 = lib.licenses.lgpl21Only;
|
|
inherit (ocaml.meta) platforms;
|
|
maintainers = [ lib.maintainers.gal_bolle ];
|
|
};
|
|
|
|
}
|