1{
2 buildDunePackage,
3 dune-configurator,
4 fetchurl,
5 kqueue,
6 lib,
7 ppx_expect,
8 ppx_optcomp,
9}:
10
11buildDunePackage rec {
12 pname = "poll";
13 version = "0.3.1";
14
15 minimalOCamlVersion = "4.13";
16
17 src = fetchurl {
18 url = "https://github.com/anuragsoni/poll/releases/download/${version}/poll-${version}.tbz";
19 hash = "sha256-IX6SivK/IMQaGgMgWiIsNgUSMHP6z1E/TSB0miaQ8pw=";
20 };
21
22 buildInputs = [
23 dune-configurator
24 ppx_optcomp
25 ];
26
27 propagatedBuildInputs = [
28 kqueue
29 ];
30
31 checkInputs = [
32 ppx_expect
33 ];
34
35 doCheck = true;
36
37 meta = {
38 description = "Portable OCaml interface to macOS/Linux/Windows native IO event notification mechanisms";
39 homepage = "https://github.com/anuragsoni/poll";
40 changelog = "https://github.com/anuragsoni/poll/blob/${version}/CHANGES.md";
41 license = lib.licenses.mit;
42 maintainers = with lib.maintainers; [ sixstring982 ];
43 };
44}