2020-11-03 02:18:15 +00:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml
|
2024-01-25 14:12:00 +00:00
|
|
|
, camlp-streams, cppo, cryptokit, ocurl, yojson
|
2022-07-18 16:21:45 +00:00
|
|
|
, ounit2
|
2020-05-15 21:57:56 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "gapi-ocaml";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "0.4.5";
|
2020-11-03 02:18:15 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "astrada";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-qlQEE8l/H22bb1VcK9YehR+9L5XepMu8JY7OLw1OIXg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
nativeBuildInputs = [ cppo ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ camlp-streams cryptokit ocurl yojson ];
|
2020-11-03 02:18:15 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
doCheck = true;
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ ounit2 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "OCaml client for google services";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/astrada/gapi-ocaml";
|
2020-11-03 02:18:15 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ bennofs ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|