2021-01-15 22:18:51 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, opaline
|
2020-04-24 23:36:52 +00:00
|
|
|
, calendar, eliom, js_of_ocaml-ppx_deriving_json
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ocsigen-toolkit";
|
|
|
|
name = "ocaml${ocaml.version}-${pname}-${version}";
|
2020-06-18 07:06:33 +00:00
|
|
|
version = "2.7.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ calendar js_of_ocaml-ppx_deriving_json eliom ];
|
|
|
|
buildInputs = [ ocaml findlib opaline ];
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
export OCAMLPATH=$out/lib/ocaml/${ocaml.version}/site-lib/:$OCAMLPATH
|
|
|
|
make install
|
|
|
|
opaline -prefix $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocsigen";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-06-18 07:06:33 +00:00
|
|
|
sha256 = "0jan5779nc0jf993hmvfii15ralcs20sm4mcnqwqrnhjbq6f6zpk";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://ocsigen.org/ocsigen-toolkit/";
|
|
|
|
description = " User interface widgets for Ocsigen applications";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.lgpl21;
|
|
|
|
maintainers = [ lib.maintainers.gal_bolle ];
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}
|