1{
2 lib,
3 buildDunePackage,
4 fetchFromGitHub,
5 uri,
6 cohttp,
7 lwt,
8 cohttp-lwt,
9 github-data,
10 yojson,
11 stringext,
12}:
13
14buildDunePackage rec {
15 pname = "github";
16 version = "4.5.0";
17
18 src = fetchFromGitHub {
19 owner = "mirage";
20 repo = "ocaml-github";
21 rev = version;
22 sha256 = "sha256-/IRoaGh4nYcdv4ir3LOS1d9UHLfWJ6DdPyFoFVCS+p4=";
23 };
24
25 duneVersion = "3";
26
27 propagatedBuildInputs = [
28 uri
29 cohttp
30 lwt
31 cohttp-lwt
32 github-data
33 yojson
34 stringext
35 ];
36
37 meta = with lib; {
38 homepage = "https://github.com/mirage/ocaml-github";
39 description = "GitHub APIv3 OCaml library";
40 license = licenses.mit;
41 maintainers = with maintainers; [ niols ];
42 };
43}