2018-05-28 07:52:45 +01:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, react, opaline }:
|
2014-10-10 23:33:22 +01:00
|
|
|
|
2019-03-26 20:53:42 +00:00
|
|
|
if !stdenv.lib.versionAtLeast ocaml.version "4.04"
|
|
|
|
then throw "reactiveData is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
2014-10-10 23:33:22 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2019-03-26 20:53:42 +00:00
|
|
|
name = "ocaml${ocaml.version}-reactiveData-0.2.2";
|
2014-10-10 23:33:22 +01:00
|
|
|
src = fetchurl {
|
2019-03-26 20:53:42 +00:00
|
|
|
url = https://github.com/ocsigen/reactiveData/archive/0.2.2.tar.gz;
|
|
|
|
sha256 = "0jzagyp4zla28wykvcgqwd8df71ir0vb4s8akp02cfacd5v86sng";
|
2014-10-10 23:33:22 +01:00
|
|
|
};
|
|
|
|
|
2018-05-28 07:52:45 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild opaline ];
|
2017-10-05 06:57:03 +01:00
|
|
|
propagatedBuildInputs = [ react ];
|
2014-10-10 23:33:22 +01:00
|
|
|
|
|
|
|
buildPhase = "ocaml pkg/build.ml native=true native-dynlink=true";
|
|
|
|
|
2018-05-28 07:52:45 +01:00
|
|
|
installPhase = "opaline -prefix $out -libdir $OCAMLFIND_DESTDIR";
|
2014-10-10 23:33:22 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An OCaml module for functional reactive programming (FRP) based on React";
|
2016-05-30 16:36:49 +01:00
|
|
|
homepage = https://github.com/ocsigen/reactiveData;
|
2014-10-10 23:33:22 +01:00
|
|
|
license = licenses.lgpl21;
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-10-10 23:33:22 +01:00
|
|
|
maintainers = with maintainers; [ vbgl ];
|
|
|
|
};
|
|
|
|
}
|