1{
2 lib,
3 fetchFromGitHub,
4 buildDunePackage,
5 camlp-streams,
6 cppo,
7 cryptokit,
8 ocurl,
9 yojson,
10 ounit2,
11}:
12
13buildDunePackage rec {
14 pname = "gapi-ocaml";
15 version = "0.4.5";
16
17 minimalOCamlVersion = "4.08";
18
19 src = fetchFromGitHub {
20 owner = "astrada";
21 repo = pname;
22 rev = "v${version}";
23 hash = "sha256-qlQEE8l/H22bb1VcK9YehR+9L5XepMu8JY7OLw1OIXg=";
24 };
25
26 nativeBuildInputs = [ cppo ];
27
28 propagatedBuildInputs = [
29 camlp-streams
30 cryptokit
31 ocurl
32 yojson
33 ];
34
35 doCheck = true;
36 checkInputs = [ ounit2 ];
37
38 meta = {
39 description = "OCaml client for google services";
40 homepage = "https://github.com/astrada/gapi-ocaml";
41 license = lib.licenses.mit;
42 maintainers = with lib.maintainers; [ bennofs ];
43 };
44}