2021-01-11 12:49:15 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, camlp4, ocamlbuild
|
2020-04-14 10:50:46 +01:00
|
|
|
, erm_xml, mirage-crypto, mirage-crypto-rng, base64
|
2018-09-21 18:01:52 +01:00
|
|
|
}:
|
2015-02-26 23:13:57 +00:00
|
|
|
|
2018-09-21 18:01:52 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-14 10:50:46 +01:00
|
|
|
version = "0.3+20200317";
|
2018-09-21 18:01:52 +01:00
|
|
|
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";
|
2020-04-14 10:50:46 +01:00
|
|
|
rev = "7fa5bea252671fd88625c6af109998b879ca564f";
|
|
|
|
sha256 = "0spzyd9kbyizzwl8y3mq8z19zlkzxnkh2fppry4lyc7vaw7bqrwq";
|
2015-02-26 23:13:57 +00:00
|
|
|
};
|
|
|
|
|
2016-10-08 07:44:25 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild camlp4 ];
|
2020-04-14 10:50:46 +01:00
|
|
|
propagatedBuildInputs = [ erm_xml mirage-crypto mirage-crypto-rng base64 ];
|
2018-09-21 18:01:52 +01:00
|
|
|
|
2021-09-06 00:54:02 +01:00
|
|
|
configurePhase = ''
|
|
|
|
runHook preConfigure
|
|
|
|
ocaml setup.ml -configure --prefix $out
|
|
|
|
runHook postConfigure
|
|
|
|
'';
|
|
|
|
buildPhase = ''
|
|
|
|
runHook preBuild
|
|
|
|
ocaml setup.ml -build
|
|
|
|
runHook postBuild
|
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
ocaml setup.ml -install
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
2015-02-26 23:13:57 +00:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/hannesm/xmpp";
|
2018-09-21 18:01:52 +01:00
|
|
|
description = "OCaml based XMPP implementation (fork)";
|
2021-01-11 12:49:15 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ sternenseemann ];
|
2018-09-21 18:01:52 +01:00
|
|
|
inherit (ocaml.meta) platforms;
|
2015-02-26 23:13:57 +00:00
|
|
|
};
|
|
|
|
}
|