2d2a5a9b63
drive-by contributions, as I was playing around with this (it has better support for the `num` library, it seems.) js_of_ocaml: 3.4.0 -> 3.5.2 ocamlPackages.js_of_ocaml-ppx_deriving_json: use ppxlib-0.12.0 ocamlPackages.eliom: 6.8.0 → 6.10.1 ocamlPackages.ocsigen-toolkit: 2.2.0 → 2.5.0 ocamlPackages.ocsigen-start: 2.7.0 → 2.16.1 Co-authored-by: Vincent Laporte <Vincent.Laporte@gmail.com>
39 lines
963 B
Nix
39 lines
963 B
Nix
{ stdenv, fetchFromGitHub, ocaml, findlib, opaline
|
|
, calendar, eliom, js_of_ocaml-ppx_deriving_json
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ocsigen-toolkit";
|
|
name = "ocaml${ocaml.version}-${pname}-${version}";
|
|
version = "2.5.0";
|
|
|
|
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;
|
|
sha256 = "0hll8qr363pbb65jnr2w36zcbplbwn08xb7826ayiwigakj783p9";
|
|
};
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
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 ];
|
|
inherit (ocaml.meta) platforms;
|
|
};
|
|
|
|
|
|
}
|