2021-01-11 12:49:15 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, camlp4, ocamlbuild
|
2020-04-14 09:50:46 +00:00
|
|
|
, erm_xml, mirage-crypto, mirage-crypto-rng, base64
|
2018-09-21 17:01:52 +00:00
|
|
|
}:
|
2015-02-26 23:13:57 +00:00
|
|
|
|
2018-09-21 17:01:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2022-07-10 13:59:33 +00:00
|
|
|
version = "0.3+20220404";
|
2022-02-10 00:28:00 +00:00
|
|
|
pname = "ocaml${ocaml.version}-erm_xmpp";
|
2015-02-26 23:13:57 +00:00
|
|
|
|
2018-09-21 17:01:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hannesm";
|
|
|
|
repo = "xmpp";
|
2022-07-10 13:59:33 +00:00
|
|
|
rev = "e54d54e142ac9770c37e144693473692bf473530";
|
|
|
|
sha256 = "sha256-Ize8Em4LI54Cy1Xuzr9BjQGV7JMr3W6KI1YzI8G1q/U=";
|
2015-02-26 23:13:57 +00:00
|
|
|
};
|
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib ocamlbuild camlp4 ];
|
|
|
|
buildInputs = [ camlp4 ];
|
2020-04-14 09:50:46 +00:00
|
|
|
propagatedBuildInputs = [ erm_xml mirage-crypto mirage-crypto-rng base64 ];
|
2018-09-21 17:01:52 +00:00
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2021-09-05 23:54:02 +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
|
|
|
|
'';
|
2015-02-26 23:13:57 +00:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/hannesm/xmpp";
|
2018-09-21 17:01:52 +00: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 17:01:52 +00:00
|
|
|
inherit (ocaml.meta) platforms;
|
2015-02-26 23:13:57 +00:00
|
|
|
};
|
|
|
|
}
|