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