1{ batteries
2, buildDunePackage
3, cohttp-lwt-unix
4, fetchFromGitHub
5, lib
6, logs
7, yojson
8}:
9
10buildDunePackage rec {
11 pname = "telegraml";
12 version = "unstable-2021-06-17";
13
14 src = fetchFromGitHub {
15 owner = "nv-vn";
16 repo = "TelegraML";
17 rev = "3e28933a287e5eacd34c46b434c487f155397abc";
18 sha256 = "sha256-2bMHARatwl8Zl/fWppvwbH6Ut+igJVKzwyQb8Q4gem4=";
19 };
20
21 postPatch = ''
22 substituteInPlace src/dune --replace batteries batteries.unthreaded
23 '';
24
25 propagatedBuildInputs = [
26 batteries
27 cohttp-lwt-unix
28 logs
29 yojson
30 ];
31
32 meta = with lib; {
33 description = "OCaml library implementing the Telegram bot API";
34 homepage = "https://github.com/nv-vn/TelegraML/";
35 license = licenses.mit;
36 maintainers = [ ];
37 };
38}