ocamlPackages.poll: init at 0.3.1

This commit is contained in:
Trent Small 2023-12-22 12:20:33 -07:00 committed by Vincent Laporte
parent 16d611487a
commit d33f2cd470
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,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 ];
};
}

View File

@ -1443,6 +1443,8 @@ let
inherit (pkgs) coreutils imagemagick;
};
poll = callPackage ../development/ocaml-modules/poll { };
polynomial = callPackage ../development/ocaml-modules/polynomial { };
portaudio = callPackage ../development/ocaml-modules/portaudio {