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";
|
2022-07-18 16:21:45 +00:00
|
|
|
version = "0.4.3";
|
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}";
|
2022-07-18 16:21:45 +00:00
|
|
|
sha256 = "sha256-V0GB9Bd06IdcI5PDFHGVZ0Y/qi7tTs/4ITqPXUOxCLs=";
|
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;
|
2022-07-18 16:21:45 +00:00
|
|
|
checkInputs = [ ounit2 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "OCaml client for google services";
|
2022-07-18 16:21:45 +00:00
|
|
|
inherit (src.meta) homepage;
|
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
|
|
|
};
|
|
|
|
}
|