567e8dfd8e
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>
40 lines
759 B
Nix
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 = [ ];
|
|
};
|
|
}
|