1{
2 stdenv,
3 lib,
4 fetchurl,
5 ocaml,
6 findlib,
7 ocamlbuild,
8 topkg,
9 brr,
10}:
11
12lib.throwIfNot (lib.versionAtLeast ocaml.version "4.08")
13 "note is not available for OCaml ${ocaml.version}"
14
15 stdenv.mkDerivation
16 rec {
17 pname = "ocaml${ocaml.version}-note";
18 version = "0.0.3";
19 src = fetchurl {
20 url = "https://erratique.ch/software/note/releases/note-${version}.tbz";
21 hash = "sha256-ZZOvCnyz7UWzFtGFI1uC0ZApzyylgZYM/HYIXGVXY2k=";
22 };
23 buildInputs = [
24 ocaml
25 findlib
26 ocamlbuild
27 topkg
28 ];
29 inherit (topkg) buildPhase installPhase;
30
31 propagatedBuildInputs = [ brr ];
32
33 meta = {
34 homepage = "https://erratique.ch/software/note";
35 description = "OCaml module for functional reactive programming";
36 license = lib.licenses.isc;
37 maintainers = [ lib.maintainers.vbgl ];
38 inherit (ocaml.meta) platforms;
39 };
40 }