2017-10-05 07:57:03 +02:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, react, opam }:
|
2014-10-11 00:33:22 +02:00
|
|
|
|
2016-12-10 10:58:33 +01:00
|
|
|
assert stdenv.lib.versionAtLeast ocaml.version "3.11";
|
2014-10-11 00:33:22 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2016-12-10 10:58:33 +01:00
|
|
|
name = "ocaml${ocaml.version}-reactiveData-0.2.1";
|
2014-10-11 00:33:22 +02:00
|
|
|
src = fetchurl {
|
2016-12-10 10:58:33 +01:00
|
|
|
url = https://github.com/ocsigen/reactiveData/archive/0.2.1.tar.gz;
|
|
|
|
sha256 = "0wcs0z50nia1cpk8mh6i5qbc6sff9cc8x7s7q1q89d7m73bnv4vf";
|
2014-10-11 00:33:22 +02:00
|
|
|
};
|
|
|
|
|
2016-12-10 10:58:33 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild opam ];
|
2017-10-05 07:57:03 +02:00
|
|
|
propagatedBuildInputs = [ react ];
|
2014-10-11 00:33:22 +02:00
|
|
|
|
|
|
|
buildPhase = "ocaml pkg/build.ml native=true native-dynlink=true";
|
|
|
|
|
2016-12-10 10:58:33 +01:00
|
|
|
installPhase = "opam-installer -i --prefix=$out --libdir=$OCAMLFIND_DESTDIR";
|
2014-10-11 00:33:22 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An OCaml module for functional reactive programming (FRP) based on React";
|
2016-05-30 17:36:49 +02:00
|
|
|
homepage = https://github.com/ocsigen/reactiveData;
|
2014-10-11 00:33:22 +02:00
|
|
|
license = licenses.lgpl21;
|
2015-12-24 18:49:07 +01:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-10-11 00:33:22 +02:00
|
|
|
maintainers = with maintainers; [ vbgl ];
|
|
|
|
};
|
|
|
|
}
|