2019-01-14 23:52:14 +01:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, opaline
|
2018-04-01 08:54:23 +02:00
|
|
|
, calendar, eliom, js_of_ocaml-ppx_deriving_json
|
|
|
|
}:
|
2017-03-04 14:32:19 +01:00
|
|
|
|
2019-01-14 23:52:14 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ocsigen-toolkit";
|
|
|
|
name = "ocaml${ocaml.version}-${pname}-${version}";
|
|
|
|
version = "2.0.0";
|
2017-03-04 14:32:19 +01:00
|
|
|
|
2018-04-01 08:54:23 +02:00
|
|
|
propagatedBuildInputs = [ calendar eliom js_of_ocaml-ppx_deriving_json ];
|
2019-01-14 23:52:14 +01:00
|
|
|
buildInputs = [ ocaml findlib opaline ];
|
2017-03-04 14:32:19 +01:00
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
export OCAMLPATH=$out/lib/ocaml/${ocaml.version}/site-lib/:$OCAMLPATH
|
|
|
|
make install
|
2018-05-29 07:15:32 +02:00
|
|
|
opaline -prefix $out
|
2017-03-04 14:32:19 +01:00
|
|
|
'';
|
|
|
|
|
2019-01-14 23:52:14 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocsigen";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0gkiqw3xi31l9q9h89fnr5gfmxi9w9lg9rlv16h4ssjgrgq3y5cw";
|
2017-03-04 14:32:19 +01:00
|
|
|
};
|
|
|
|
|
2019-01-14 23:52:14 +01:00
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2017-03-04 14:32:19 +01: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 23:52:14 +01:00
|
|
|
inherit (ocaml.meta) platforms;
|
2017-03-04 14:32:19 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}
|