at 18.09-beta 26 lines 901 B view raw
1{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, react, opaline }: 2 3assert stdenv.lib.versionAtLeast ocaml.version "3.11"; 4 5stdenv.mkDerivation { 6 name = "ocaml${ocaml.version}-reactiveData-0.2.1"; 7 src = fetchurl { 8 url = https://github.com/ocsigen/reactiveData/archive/0.2.1.tar.gz; 9 sha256 = "0wcs0z50nia1cpk8mh6i5qbc6sff9cc8x7s7q1q89d7m73bnv4vf"; 10 }; 11 12 buildInputs = [ ocaml findlib ocamlbuild opaline ]; 13 propagatedBuildInputs = [ react ]; 14 15 buildPhase = "ocaml pkg/build.ml native=true native-dynlink=true"; 16 17 installPhase = "opaline -prefix $out -libdir $OCAMLFIND_DESTDIR"; 18 19 meta = with stdenv.lib; { 20 description = "An OCaml module for functional reactive programming (FRP) based on React"; 21 homepage = https://github.com/ocsigen/reactiveData; 22 license = licenses.lgpl21; 23 platforms = ocaml.meta.platforms or []; 24 maintainers = with maintainers; [ vbgl ]; 25 }; 26}