summaryrefslogtreecommitdiff
path: root/pkgs/development/ocaml-modules/github/default.nix
blob: 7c91f5a9dbcf2b240f4e103565313088468ad130 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
  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 ];
  };
}