1{ lib, stdenv, fetchurl, ocaml, findlib, topkg, ocamlbuild }:
2
3stdenv.mkDerivation rec {
4 pname = "ocaml-react";
5 version = "1.2.1";
6
7 src = fetchurl {
8 url = "https://erratique.ch/software/react/releases/react-${version}.tbz";
9 sha256 = "1aj8w79gdd9xnrbz7s5p8glcb4pmimi8jp9f439dqnf6ih3mqb3v";
10 };
11
12 buildInputs = [ ocaml findlib topkg ocamlbuild ];
13
14 inherit (topkg) buildPhase installPhase;
15
16 meta = with lib; {
17 homepage = "https://erratique.ch/software/react";
18 description = "Applicative events and signals for OCaml";
19 license = licenses.bsd3;
20 platforms = ocaml.meta.platforms or [ ];
21 maintainers = with maintainers; [ maggesi vbmithr gal_bolle ];
22 };
23}