lol
1{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, ocurl, cryptokit, ocaml_extlib, yojson, ocamlnet, xmlm }:
2
3stdenv.mkDerivation rec {
4 name = "gapi-ocaml-${version}";
5 version = "0.3.4";
6 src = fetchFromGitHub {
7 owner = "astrada";
8 repo = "gapi-ocaml";
9 rev = "v${version}";
10 sha256 = "07p6p108fyf9xz54jbcld40k3r9zyybxmr5i3rrkhgwm8gb6sbhv";
11 };
12 buildInputs = [ ocaml findlib ocamlbuild ];
13 propagatedBuildInputs = [ ocurl cryptokit ocaml_extlib yojson ocamlnet xmlm ];
14
15 configurePhase = "ocaml setup.ml -configure --prefix $out";
16 buildPhase = "ocaml setup.ml -build";
17 installPhase = "ocaml setup.ml -install";
18 createFindlibDestdir = true;
19
20 meta = {
21 description = "OCaml client for google services";
22 homepage = http://gapi-ocaml.forge.ocamlcore.org;
23 license = stdenv.lib.licenses.mit;
24 maintainers = with stdenv.lib.maintainers; [ bennofs ];
25 platforms = ocaml.meta.platforms or [];
26 };
27}