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