2018-05-28 22:14:44 -07:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder, ocurl, cryptokit, ocaml_extlib, yojson, ocamlnet, xmlm }:
|
2015-01-25 13:08:33 -08:00
|
|
|
|
2018-05-09 09:38:47 -07:00
|
|
|
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
|
|
|
|
then throw "gapi-ocaml is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
2015-01-25 13:08:33 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2017-07-12 01:16:45 -07:00
|
|
|
name = "gapi-ocaml-${version}";
|
2018-03-19 11:43:28 -07:00
|
|
|
version = "0.3.6";
|
2017-07-12 01:16:45 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "astrada";
|
|
|
|
repo = "gapi-ocaml";
|
|
|
|
rev = "v${version}";
|
2018-03-19 11:43:28 -07:00
|
|
|
sha256 = "0qgsy51bhkpfgl5rdnjw4bqs5fbh2w4vwrfbl8y3lh1wrqmnwci4";
|
2015-01-25 13:08:33 -08:00
|
|
|
};
|
2018-03-19 11:43:28 -07:00
|
|
|
buildInputs = [ ocaml jbuilder findlib ];
|
2015-01-25 13:08:33 -08:00
|
|
|
propagatedBuildInputs = [ ocurl cryptokit ocaml_extlib yojson ocamlnet xmlm ];
|
|
|
|
|
2018-05-28 22:14:44 -07:00
|
|
|
inherit (jbuilder) installPhase;
|
2015-01-25 13:08:33 -08:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "OCaml client for google services";
|
|
|
|
homepage = http://gapi-ocaml.forge.ocamlcore.org;
|
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ bennofs ];
|
2015-12-24 09:49:07 -08:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2015-01-25 13:08:33 -08:00
|
|
|
};
|
|
|
|
}
|