@@ -0,0 +1,33 @@
1+{ stdenv, fetchurl, fetchzip, ocaml, findlib, erm_xml, cryptokit, camlp4 }:
2+
3+let
4+ version = "0.2";
5+ disable-tests = fetchurl {
6+ url = https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/erm_xmpp/erm_xmpp.0.2/files/disable_tests.patch;
7+ sha256 = "09d8630nmx2x8kb8ap1zmsb93zs14cqg7ga1gmdl92jvsjxbhgc1";
8+ };
9+in
10+
11+stdenv.mkDerivation {
12+ name = "ocaml-erm_xmpp-${version}";
13+
14+ src = fetchzip {
15+ url = "https://github.com/ermine/xmpp/archive/v${version}.tar.gz";
16+ sha256 = "0saw2dmrzv2aadrznvyvchnhivvcwm78x9nwf6flq5v0pqddapk2";
17+ };
18+
19+ patches = [ disable-tests ];
20+
21+ buildInputs = [ ocaml findlib camlp4 ];
22+ propagatedBuildInputs = [ erm_xml cryptokit ];
23+
24+ createFindlibDestdir = true;
25+
26+ meta = {
27+ homepage = https://github.com/ermine/xmpp;
28+ description = "OCaml based XMPP implementation";
29+ platforms = ocaml.meta.platforms;
30+ license = stdenv.lib.licenses.bsd3;
31+ maintainers = with stdenv.lib.maintainers; [ vbgl ];
32+ };
33+}