2020-11-03 02:18:15 +00:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml
|
|
|
|
, cryptokit, ocamlnet, 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";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.4.4";
|
2023-01-11 07:51:40 +00:00
|
|
|
duneVersion = "3";
|
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}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-+UNFW5tmIh5dVyTDEOfOmy1j+gV4P28jlnBTdpQNAjE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
propagatedBuildInputs = [ cryptokit ocamlnet ocurl yojson ];
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|