3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/reactivedata/default.nix

33 lines
997 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, react, opaline }:
if !lib.versionAtLeast ocaml.version "4.04"
then throw "reactiveData is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
pname = "ocaml${ocaml.version}-reactiveData";
version = "0.2.2";
src = fetchFromGitHub {
owner = "ocsigen";
repo = "reactiveData";
rev = version;
sha256 = "sha256-YLkacIbjxZQ/ThgSxjTqviBYih6eW2GX5H7iybQDv1A=";
};
buildInputs = [ ocaml findlib ocamlbuild opaline ];
2017-10-05 06:57:03 +01:00
propagatedBuildInputs = [ react ];
buildPhase = "ocaml pkg/build.ml native=true native-dynlink=true";
installPhase = "opaline -prefix $out -libdir $OCAMLFIND_DESTDIR";
meta = with lib; {
description = "An OCaml module for functional reactive programming (FRP) based on React";
homepage = "https://github.com/ocsigen/reactiveData";
license = licenses.lgpl21;
2021-11-09 19:53:19 +00:00
platforms = ocaml.meta.platforms or [ ];
maintainers = with maintainers; [ vbgl ];
};
}