Files
nixpkgs/pkgs/development/ocaml-modules/github/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

44 lines
706 B
Nix

{
lib,
buildDunePackage,
fetchFromGitHub,
uri,
cohttp,
lwt,
cohttp-lwt,
github-data,
yojson,
stringext,
}:
buildDunePackage rec {
pname = "github";
version = "4.5.0";
src = fetchFromGitHub {
owner = "mirage";
repo = "ocaml-github";
rev = version;
sha256 = "sha256-/IRoaGh4nYcdv4ir3LOS1d9UHLfWJ6DdPyFoFVCS+p4=";
};
duneVersion = "3";
propagatedBuildInputs = [
uri
cohttp
lwt
cohttp-lwt
github-data
yojson
stringext
];
meta = {
homepage = "https://github.com/mirage/ocaml-github";
description = "GitHub APIv3 OCaml library";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ niols ];
};
}