blob: 3f0255d29ec0cc51ce861d59ab1801aec8cf2f62 (
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
44
45
46
47
48
49
50
51
52
|
{
lib,
buildDunePackage,
fetchFromGitHub,
uri,
cohttp-lwt,
atdgen,
atdgen-runtime,
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=";
};
postPatch = ''
substituteInPlace lib/dune --replace-warn 'atdgen str' 'atdgen-runtime str'
'';
minimalOCamlVersion = "4.08";
buildInputs = [ stringext ];
nativeBuildInputs = [ atdgen ];
propagatedBuildInputs = [
uri
cohttp-lwt
atdgen-runtime
yojson
iso8601
];
doCheck = true;
meta = {
homepage = "https://github.com/tmcgilchrist/ocaml-gitlab";
description = "Native OCaml bindings to Gitlab REST API v4";
license = lib.licenses.bsd3;
changelog = "https://github.com/tmcgilchrist/ocaml-gitlab/releases/tag/${version}";
maintainers = with lib.maintainers; [ zazedd ];
};
}
|