2021-01-11 12:49:15 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, opaline
|
2018-04-01 06:54:23 +00: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}";
|
2022-04-29 18:43:31 +00:00
|
|
|
version = "3.2.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 ];
|
2022-02-22 09:59:04 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib opaline eliom ];
|
|
|
|
|
2022-11-29 16:30:00 +00:00
|
|
|
# Remove widgets not compatible with jsoo 4.1.0
|
|
|
|
# https://github.com/ocsigen/ocsigen-toolkit/issues/221
|
|
|
|
preConfigure = ''
|
|
|
|
rm src/widgets/ot_{carousel,drawer,swipe,tongue}.eliom{,i}
|
|
|
|
'';
|
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
strictDeps = true;
|
2017-03-04 13:32:19 +00:00
|
|
|
|
2021-08-27 05:39:32 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
mkdir -p $OCAMLFIND_DESTDIR
|
2017-03-04 13:32:19 +00:00
|
|
|
export OCAMLPATH=$out/lib/ocaml/${ocaml.version}/site-lib/:$OCAMLPATH
|
|
|
|
make install
|
2018-05-29 05:15:32 +00:00
|
|
|
opaline -prefix $out
|
2021-08-27 05:39:32 +00:00
|
|
|
runHook postInstall
|
2017-03-04 13:32:19 +00:00
|
|
|
'';
|
|
|
|
|
2019-01-14 22:52:14 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocsigen";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-04-29 18:43:31 +00:00
|
|
|
sha256 = "sha256:13n0y8a80bl94la4lnp9dr2x7b8plhm17g9zgf0l6x42g3886pw7";
|
2017-03-04 13:32:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00: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
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}
|