about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/gitlab/default.nix
blob: f8bc6224cf70d26ce43d52b5ad0f1861818dbdc7 (plain) (blame)
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
44
45
46
47
{
  lib,
  buildDunePackage,
  fetchFromGitHub,
  uri,
  cohttp-lwt,
  atdgen,
  yojson,
  iso8601,
  stringext,
}:

buildDunePackage rec {
  pname = "gitlab";
  version = "0.1.8";

  src = fetchFromGitHub {
    owner = "tmcgilchrist";
    repo = "ocaml-gitlab";
    rev = version;
    hash = "sha256-7pUpH1SoP4eW8ild5j+Tcy+aTXq0+eSkhKUOXJ6Z30k=";
  };

  minimalOCamlVersion = "4.08";

  buildInputs = [ stringext ];

  nativeBuildInputs = [ atdgen ];

  propagatedBuildInputs = [
    uri
    cohttp-lwt
    atdgen
    yojson
    iso8601
  ];

  doCheck = true;

  meta = with lib; {
    homepage = "https://github.com/tmcgilchrist/ocaml-gitlab";
    description = "Native OCaml bindings to Gitlab REST API v4";
    license = licenses.bsd3;
    changelog = "https://github.com/tmcgilchrist/ocaml-gitlab/releases/tag/${version}";
    maintainers = with maintainers; [ zazedd ];
  };
}