2018-09-21 18:01:52 +01:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, camlp4, ocamlbuild
|
|
|
|
, erm_xml, nocrypto
|
|
|
|
}:
|
2015-02-26 23:13:57 +00:00
|
|
|
|
2018-09-21 18:01:52 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.3+20180112";
|
|
|
|
name = "ocaml${ocaml.version}-erm_xmpp-${version}";
|
2015-02-26 23:13:57 +00:00
|
|
|
|
2018-09-21 18:01:52 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hannesm";
|
|
|
|
repo = "xmpp";
|
|
|
|
rev = "184dc70fab7d46d09b9148ca4448f07f1e0a2df2";
|
|
|
|
sha256 = "1dsqsfacvd9xqsqjzh6xwbnf2mv1dvhy210riyvjd260q085ch6n";
|
2015-02-26 23:13:57 +00:00
|
|
|
};
|
|
|
|
|
2016-10-08 07:44:25 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild camlp4 ];
|
2018-09-21 18:01:52 +01:00
|
|
|
propagatedBuildInputs = [ erm_xml nocrypto ];
|
|
|
|
|
|
|
|
configurePhase = "ocaml setup.ml -configure --prefix $out";
|
|
|
|
buildPhase = "ocaml setup.ml -build";
|
|
|
|
installPhase = "ocaml setup.ml -install";
|
2015-02-26 23:13:57 +00:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
2018-09-21 18:01:52 +01:00
|
|
|
homepage = https://github.com/hannesm/xmpp;
|
|
|
|
description = "OCaml based XMPP implementation (fork)";
|
2015-02-26 23:13:57 +00:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2018-09-21 18:01:52 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ sternenseemann ];
|
|
|
|
inherit (ocaml.meta) platforms;
|
2015-02-26 23:13:57 +00:00
|
|
|
};
|
|
|
|
}
|