summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/github/unix.nix
blob: ae6bdb7967a8694bd064561c3c9fc48cba9a7ddd (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
{
  buildDunePackage,
  fetchpatch,
  github,
  cohttp,
  cohttp-lwt-unix,
  stringext,
  cmdliner,
  lwt,
}:

buildDunePackage {
  pname = "github-unix";
  inherit (github) version src;

  postPatch = ''
    substituteInPlace unix/dune --replace-fail 'github bytes' 'github'
  '';

  propagatedBuildInputs = [
    github
    cohttp
    cohttp-lwt-unix
    stringext
    cmdliner
    lwt
  ];

  meta = github.meta // {
    description = "GitHub APIv3 Unix library";
  };
}