about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/poll/default.nix
blob: ea1e2e1c13d79906b0a736755efc014015f7692c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ buildDunePackage
, dune-configurator
, fetchurl
, kqueue
, lib
, ppx_expect
, ppx_optcomp
}:

buildDunePackage rec {
  pname = "poll";
  version = "0.3.1";

  minimalOCamlVersion = "4.13";

  src = fetchurl {
    url = "https://github.com/anuragsoni/poll/releases/download/${version}/poll-${version}.tbz";
    hash = "sha256-IX6SivK/IMQaGgMgWiIsNgUSMHP6z1E/TSB0miaQ8pw=";
  };

  buildInputs = [
    dune-configurator
    ppx_optcomp
  ];

  propagatedBuildInputs = [
    kqueue
  ];

  checkInputs = [
    ppx_expect
  ];

  doCheck = true;

  meta = {
    description = "Portable OCaml interface to macOS/Linux/Windows native IO event notification mechanisms";
    homepage = "https://github.com/anuragsoni/poll";
    changelog = "https://github.com/anuragsoni/poll/blob/${version}/CHANGES.md";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ sixstring982 ];
  };
}