2021-01-11 12:49:15 +00:00
|
|
|
{ stdenv, lib, 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-06-06 08:47:45 +01:00
|
|
|
version = "2.7.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-06-06 08:47:45 +01:00
|
|
|
sha256 = "0jan5779nc0jf993hmvfii15ralcs20sm4mcnqwqrnhjbq6f6zpk";
|
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";
|
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
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}
|