From 02bd4336d91160a8a02f0f2c4f58ace9aa3eba10 Mon Sep 17 00:00:00 2001 From: superherointj <5861043+superherointj@users.noreply.github.com> Date: Fri, 13 May 2022 09:55:12 -0300 Subject: [PATCH] ocamlPackages.telegraml: init unstable-2021-06-17 --- .../ocaml-modules/telegraml/default.nix | 34 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/development/ocaml-modules/telegraml/default.nix diff --git a/pkgs/development/ocaml-modules/telegraml/default.nix b/pkgs/development/ocaml-modules/telegraml/default.nix new file mode 100644 index 00000000000..b6f5f69b876 --- /dev/null +++ b/pkgs/development/ocaml-modules/telegraml/default.nix @@ -0,0 +1,34 @@ +{ batteries +, buildDunePackage +, cohttp-lwt-unix +, fetchFromGitHub +, lib +, logs +, yojson +}: + +buildDunePackage rec { + pname = "telegraml"; + version = "unstable-2021-06-17"; + + src = fetchFromGitHub { + owner = "nv-vn"; + repo = "TelegraML"; + rev = "3e28933a287e5eacd34c46b434c487f155397abc"; + sha256 = "sha256-2bMHARatwl8Zl/fWppvwbH6Ut+igJVKzwyQb8Q4gem4="; + }; + + propagatedBuildInputs = [ + batteries + cohttp-lwt-unix + logs + yojson + ]; + + meta = with lib; { + description = "An OCaml library implementing the Telegram bot API"; + homepage = "https://github.com/nv-vn/TelegraML/"; + license = licenses.mit; + maintainers = with maintainers; [ superherointj ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 4bb51cf75bd..4b31e2484a7 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1344,6 +1344,8 @@ let tcslib = callPackage ../development/ocaml-modules/tcslib { }; + telegraml = callPackage ../development/ocaml-modules/telegraml { }; + terminal = callPackage ../development/ocaml-modules/terminal { }; terminal_size = callPackage ../development/ocaml-modules/terminal_size { };