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