1 { stdenv, lib, fetchFromGitHub, ocaml, findlib, camlp4, ocamlbuild
2 , erm_xml, mirage-crypto, mirage-crypto-rng, base64
5 stdenv.mkDerivation rec {
6 version = "0.3+20220404";
7 pname = "ocaml${ocaml.version}-erm_xmpp";
9 src = fetchFromGitHub {
12 rev = "e54d54e142ac9770c37e144693473692bf473530";
13 sha256 = "sha256-Ize8Em4LI54Cy1Xuzr9BjQGV7JMr3W6KI1YzI8G1q/U=";
16 nativeBuildInputs = [ ocaml findlib ocamlbuild camlp4 ];
17 buildInputs = [ camlp4 ];
18 propagatedBuildInputs = [ erm_xml mirage-crypto mirage-crypto-rng base64 ];
24 ocaml setup.ml -configure --prefix $out
34 ocaml setup.ml -install
38 createFindlibDestdir = true;
41 homepage = "https://github.com/hannesm/xmpp";
42 description = "OCaml based XMPP implementation (fork)";
43 license = lib.licenses.bsd3;
44 maintainers = with lib.maintainers; [ sternenseemann ];
45 inherit (ocaml.meta) platforms;