diff options
author | Trent Small <sixstring982@gmail.com> | 2023-12-22 12:20:33 -0700 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2023-12-26 10:02:01 +0100 |
commit | d33f2cd4703abe97ea4c197f6c123152c208c9a5 (patch) | |
tree | 2c5d05f21ecbe4568fd6387af7edcda6e7d1e371 /pkgs/development/ocaml-modules | |
parent | 16d611487a9ec8c5281f055fbc785af384a257ee (diff) | |
download | nixlib-d33f2cd4703abe97ea4c197f6c123152c208c9a5.tar nixlib-d33f2cd4703abe97ea4c197f6c123152c208c9a5.tar.gz nixlib-d33f2cd4703abe97ea4c197f6c123152c208c9a5.tar.bz2 nixlib-d33f2cd4703abe97ea4c197f6c123152c208c9a5.tar.lz nixlib-d33f2cd4703abe97ea4c197f6c123152c208c9a5.tar.xz nixlib-d33f2cd4703abe97ea4c197f6c123152c208c9a5.tar.zst nixlib-d33f2cd4703abe97ea4c197f6c123152c208c9a5.zip |
ocamlPackages.poll: init at 0.3.1
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/poll/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/poll/default.nix b/pkgs/development/ocaml-modules/poll/default.nix new file mode 100644 index 000000000000..ea1e2e1c13d7 --- /dev/null +++ b/pkgs/development/ocaml-modules/poll/default.nix @@ -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 ]; + }; +} |