Files
nixpkgs/pkgs/development/ocaml-modules/telegraml/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

40 lines
759 B
Nix

{
batteries,
buildDunePackage,
cohttp-lwt-unix,
fetchFromGitHub,
lib,
logs,
yojson,
}:
buildDunePackage {
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 = {
description = "OCaml library implementing the Telegram bot API";
homepage = "https://github.com/nv-vn/TelegraML/";
license = lib.licenses.mit;
maintainers = [ ];
};
}