2016-10-09 20:10:46 +02:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, ocurl, cryptokit, ocaml_extlib, yojson, ocamlnet, xmlm }:
|
2015-01-25 22:08:33 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-03-29 15:09:34 +02:00
|
|
|
name = "gapi-ocaml-0.2.10";
|
2015-01-25 22:08:33 +01:00
|
|
|
src = fetchurl {
|
2016-03-29 15:09:34 +02:00
|
|
|
url = "https://forge.ocamlcore.org/frs/download.php/1601/${name}.tar.gz";
|
|
|
|
sha256 = "0kg4j7dhr7jynpy8x53bflqjf78jyl14j414l6px34xz7c9qx5fl";
|
2015-01-25 22:08:33 +01:00
|
|
|
};
|
2016-10-09 20:10:46 +02:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ];
|
2015-01-25 22:08:33 +01: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 18:49:07 +01:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2015-01-25 22:08:33 +01:00
|
|
|
};
|
|
|
|
}
|