2021-01-11 12:49:15 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, opaline
|
2018-04-01 06:54:23 +00:00
|
|
|
, calendar, eliom, js_of_ocaml-ppx_deriving_json
|
|
|
|
}:
|
2017-03-04 13:32:19 +00:00
|
|
|
|
2019-01-14 22:52:14 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ocsigen-toolkit";
|
|
|
|
name = "ocaml${ocaml.version}-${pname}-${version}";
|
2021-09-22 05:11:06 +00:00
|
|
|
version = "3.0.1";
|
2017-03-04 13:32:19 +00:00
|
|
|
|
2020-03-06 06:42:04 +00:00
|
|
|
propagatedBuildInputs = [ calendar js_of_ocaml-ppx_deriving_json eliom ];
|
2019-01-14 22:52:14 +00:00
|
|
|
buildInputs = [ ocaml findlib opaline ];
|
2017-03-04 13:32:19 +00:00
|
|
|
|
2021-08-27 05:39:32 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
mkdir -p $OCAMLFIND_DESTDIR
|
2017-03-04 13:32:19 +00:00
|
|
|
export OCAMLPATH=$out/lib/ocaml/${ocaml.version}/site-lib/:$OCAMLPATH
|
|
|
|
make install
|
2018-05-29 05:15:32 +00:00
|
|
|
opaline -prefix $out
|
2021-08-27 05:39:32 +00:00
|
|
|
runHook postInstall
|
2017-03-04 13:32:19 +00:00
|
|
|
'';
|
|
|
|
|
2019-01-14 22:52:14 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocsigen";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-09-22 05:11:06 +00:00
|
|
|
sha256 = "1yx50ja2wcs5vfy4rk9szgwccpnihkjn14i4ywchx4yr4ppr00fm";
|
2017-03-04 13:32:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://ocsigen.org/ocsigen-toolkit/";
|
2017-03-04 13:32:19 +00:00
|
|
|
description = " User interface widgets for Ocsigen applications";
|
2021-01-11 12:49:15 +00:00
|
|
|
license = lib.licenses.lgpl21;
|
|
|
|
maintainers = [ lib.maintainers.gal_bolle ];
|
2019-01-14 22:52:14 +00:00
|
|
|
inherit (ocaml.meta) platforms;
|
2017-03-04 13:32:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}
|