2021-01-15 22:18:51 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, camlp4, ocamlbuild
|
2020-04-24 23:36:52 +00:00
|
|
|
, erm_xml, mirage-crypto, mirage-crypto-rng, base64
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "0.3+20220404";
|
2022-02-10 20:34:41 +00:00
|
|
|
pname = "ocaml${ocaml.version}-erm_xmpp";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hannesm";
|
|
|
|
repo = "xmpp";
|
2022-07-14 12:49:19 +00:00
|
|
|
rev = "e54d54e142ac9770c37e144693473692bf473530";
|
|
|
|
sha256 = "sha256-Ize8Em4LI54Cy1Xuzr9BjQGV7JMr3W6KI1YzI8G1q/U=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib ocamlbuild camlp4 ];
|
|
|
|
buildInputs = [ camlp4 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ erm_xml mirage-crypto mirage-crypto-rng base64 ];
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2021-09-18 10:52:07 +00: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
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/hannesm/xmpp";
|
|
|
|
description = "OCaml based XMPP implementation (fork)";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ sternenseemann ];
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|