2016-10-08 07:44:25 +01:00
|
|
|
{ stdenv, fetchurl, fetchzip, ocaml, findlib, ocamlbuild, erm_xml, cryptokit, camlp4 }:
|
2015-02-26 23:13:57 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
version = "0.2";
|
|
|
|
disable-tests = fetchurl {
|
|
|
|
url = https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/erm_xmpp/erm_xmpp.0.2/files/disable_tests.patch;
|
|
|
|
sha256 = "09d8630nmx2x8kb8ap1zmsb93zs14cqg7ga1gmdl92jvsjxbhgc1";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2015-09-06 20:15:10 +01:00
|
|
|
name = "ocaml-erm_xmpp-${version}";
|
2015-02-26 23:13:57 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/ermine/xmpp/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "0saw2dmrzv2aadrznvyvchnhivvcwm78x9nwf6flq5v0pqddapk2";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ disable-tests ];
|
|
|
|
|
2016-10-08 07:44:25 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild camlp4 ];
|
2015-09-06 20:15:10 +01:00
|
|
|
propagatedBuildInputs = [ erm_xml cryptokit ];
|
2015-02-26 23:13:57 +00:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/ermine/xmpp;
|
|
|
|
description = "OCaml based XMPP implementation";
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2015-02-26 23:13:57 +00:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
|
|
|
};
|
|
|
|
}
|