2016-10-09 11:10:46 -07:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, ocurl, cryptokit, ocaml_extlib, yojson, ocamlnet, xmlm }:
|
2015-01-25 13:08:33 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-02-18 02:00:04 -08:00
|
|
|
name = "gapi-ocaml-0.3.1";
|
2015-01-25 13:08:33 -08:00
|
|
|
src = fetchurl {
|
2017-02-18 02:00:04 -08:00
|
|
|
url = "https://forge.ocamlcore.org/frs/download.php/1665/${name}.tar.gz";
|
|
|
|
sha256 = "1fn563k9mpqp61909l5bzddnkyn04bk106vrcr7qiim1d2i6cf8i";
|
2015-01-25 13:08:33 -08:00
|
|
|
};
|
2016-10-09 11:10:46 -07:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ];
|
2015-01-25 13:08:33 -08:00
|
|
|
propagatedBuildInputs = [ ocurl cryptokit ocaml_extlib yojson ocamlnet xmlm ];
|
|
|
|
|
|
|
|
configurePhase = "ocaml setup.ml -configure --prefix $out";
|
|
|
|
buildPhase = "ocaml setup.ml -build";
|
|
|
|
installPhase = "ocaml setup.ml -install";
|
|
|
|
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 09:49:07 -08:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2015-01-25 13:08:33 -08:00
|
|
|
};
|
|
|
|
}
|