3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/reactivedata/default.nix
R. RyanTM 9d5d5b243d
ocamlPackages.reactivedata: 0.2.1 -> 0.2.2
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/ocaml4.06.1-reactivedata/versions

Closes #58405
2019-04-06 14:59:12 +00:00

29 lines
972 B
Nix

{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, react, opaline }:
if !stdenv.lib.versionAtLeast ocaml.version "4.04"
then throw "reactiveData is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation {
name = "ocaml${ocaml.version}-reactiveData-0.2.2";
src = fetchurl {
url = https://github.com/ocsigen/reactiveData/archive/0.2.2.tar.gz;
sha256 = "0jzagyp4zla28wykvcgqwd8df71ir0vb4s8akp02cfacd5v86sng";
};
buildInputs = [ ocaml findlib ocamlbuild opaline ];
propagatedBuildInputs = [ react ];
buildPhase = "ocaml pkg/build.ml native=true native-dynlink=true";
installPhase = "opaline -prefix $out -libdir $OCAMLFIND_DESTDIR";
meta = with stdenv.lib; {
description = "An OCaml module for functional reactive programming (FRP) based on React";
homepage = https://github.com/ocsigen/reactiveData;
license = licenses.lgpl21;
platforms = ocaml.meta.platforms or [];
maintainers = with maintainers; [ vbgl ];
};
}