depot/third_party/nixpkgs/pkgs/development/ocaml-modules/telegraml/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

38 lines
760 B
Nix

{ 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=";
};
postPatch = ''
substituteInPlace src/dune --replace batteries batteries.unthreaded
'';
propagatedBuildInputs = [
batteries
cohttp-lwt-unix
logs
yojson
];
meta = with lib; {
description = "OCaml library implementing the Telegram bot API";
homepage = "https://github.com/nv-vn/TelegraML/";
license = licenses.mit;
maintainers = [ ];
};
}