2019-01-14 22:52:14 +00:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, opaline
|
2018-04-01 07:54:23 +01: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}";
|
2020-03-06 06:42:04 +00:00
|
|
|
version = "2.5.0";
|
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
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
export OCAMLPATH=$out/lib/ocaml/${ocaml.version}/site-lib/:$OCAMLPATH
|
|
|
|
make install
|
2018-05-29 06:15:32 +01:00
|
|
|
opaline -prefix $out
|
2017-03-04 13:32:19 +00:00
|
|
|
'';
|
|
|
|
|
2019-01-14 22:52:14 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocsigen";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-03-06 06:42:04 +00:00
|
|
|
sha256 = "0hll8qr363pbb65jnr2w36zcbplbwn08xb7826ayiwigakj783p9";
|
2017-03-04 13:32:19 +00:00
|
|
|
};
|
|
|
|
|
2019-01-14 22:52:14 +00:00
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2017-03-04 13:32:19 +00:00
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://ocsigen.org/ocsigen-toolkit/";
|
2017-03-04 13:32:19 +00:00
|
|
|
description = " User interface widgets for Ocsigen applications";
|
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.gal_bolle ];
|
2019-01-14 22:52:14 +00:00
|
|
|
inherit (ocaml.meta) platforms;
|
2017-03-04 13:32:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}
|