2018-03-19 19:43:28 +01:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder, opam, ocurl, cryptokit, ocaml_extlib, yojson, ocamlnet, xmlm }:
|
2015-01-25 22:08:33 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-07-12 10:16:45 +02:00
|
|
|
name = "gapi-ocaml-${version}";
|
2018-03-19 19:43:28 +01:00
|
|
|
version = "0.3.6";
|
2017-07-12 10:16:45 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "astrada";
|
|
|
|
repo = "gapi-ocaml";
|
|
|
|
rev = "v${version}";
|
2018-03-19 19:43:28 +01:00
|
|
|
sha256 = "0qgsy51bhkpfgl5rdnjw4bqs5fbh2w4vwrfbl8y3lh1wrqmnwci4";
|
2015-01-25 22:08:33 +01:00
|
|
|
};
|
2018-03-19 19:43:28 +01:00
|
|
|
buildInputs = [ ocaml jbuilder findlib ];
|
2015-01-25 22:08:33 +01:00
|
|
|
propagatedBuildInputs = [ ocurl cryptokit ocaml_extlib yojson ocamlnet xmlm ];
|
|
|
|
|
2018-03-19 19:43:28 +01:00
|
|
|
installPhase = "${opam}/bin/opam-installer -i --prefix=$out --libdir=$OCAMLFIND_DESTDIR";
|
|
|
|
|
2015-01-25 22:08:33 +01:00
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
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 18:49:07 +01:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2015-01-25 22:08:33 +01:00
|
|
|
};
|
|
|
|
}
|