2020-10-26 05:11:02 +00:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml
|
|
|
|
, cryptokit, ocamlnet, ocurl, yojson
|
|
|
|
, ounit
|
2020-05-01 13:57:14 +01:00
|
|
|
}:
|
2015-01-25 21:08:33 +00:00
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "gapi-ocaml";
|
2020-10-26 05:11:02 +00:00
|
|
|
version = "0.4.1";
|
|
|
|
|
|
|
|
useDune2 = true;
|
2018-11-05 10:21:46 +00:00
|
|
|
|
|
|
|
minimumOCamlVersion = "4.02";
|
|
|
|
|
2017-07-12 09:16:45 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "astrada";
|
2018-11-05 10:21:46 +00:00
|
|
|
repo = pname;
|
2017-07-12 09:16:45 +01:00
|
|
|
rev = "v${version}";
|
2020-10-26 05:11:02 +00:00
|
|
|
sha256 = "0riax23grjnq9pczmp1yv02ji0svvs2kbiqskj6f6yjviamnpa31";
|
2015-01-25 21:08:33 +00:00
|
|
|
};
|
|
|
|
|
2020-10-26 05:11:02 +00:00
|
|
|
propagatedBuildInputs = [ cryptokit ocamlnet ocurl yojson ];
|
|
|
|
|
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.04";
|
|
|
|
checkInputs = [ ounit ];
|
2015-01-25 21:08:33 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "OCaml client for google services";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://gapi-ocaml.forge.ocamlcore.org";
|
2020-10-26 05:11:02 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ bennofs ];
|
2015-01-25 21:08:33 +00:00
|
|
|
};
|
|
|
|
}
|