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}";
|
2019-08-10 17:31:25 +01:00
|
|
|
version = "2.2.0";
|
2017-03-04 13:32:19 +00:00
|
|
|
|
2018-04-01 07:54:23 +01:00
|
|
|
propagatedBuildInputs = [ calendar eliom js_of_ocaml-ppx_deriving_json ];
|
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;
|
2019-08-10 17:31:25 +01:00
|
|
|
sha256 = "0qy6501jf81qcmkbicgrb1x4pxsjkhr40plwdn09w37d8vx9va3s";
|
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 = {
|
|
|
|
homepage = http://ocsigen.org/ocsigen-toolkit/;
|
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}
|