depot/third_party/nixpkgs/pkgs/development/ocaml-modules/poll/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

43 lines
896 B
Nix

{ 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 ];
};
}