5ea573ca47
ocamlPackages.asn1-combinators: 0.2.6 → 0.3.1 ocamlPackages.awa: 0.3.1 → 0.4.0 ocamlPackages.ca-certs: 0.2.3 → 1.0.0 ocamlPackages.ca-certs-nss: 3.101 → 3.103 ocamlPackages.conduit: 6.2.3 → 7.0.0 ocamlPackages.dns: 8.0.0 → 9.0.0 ocamlPackages.erm_xmpp: 0.3+20220404 → 0.3+20241009 ocamlPackages.git: 3.16.1 → 3.17.0 ocamlPackages.hkdf: 1.0.4 → 2.0.0 ocamlPackages.http-mirage-client: 0.0.6 → 0.0.7 ocamlPackages.letsencrypt: 0.5.1 → 1.0.0 ocamlPackages.paf: 0.6.0 → 0.7.0 ocamlPackages.pbkdf: 1.2.0 → 2.0.0 ocamlPackages.randomconv: 0.1.3 → 0.2.0 ocamlPackages.tcpip: 8.1.0 → 8.2.0 ocamlPackages.tls: 0.17.5 → 1.0.1 ocamlPackages.x509: 0.16.5 → 1.0.2 ocamlPackages.mrmime: disable tests ocamlPackages.chacha: mark as broken ocamlPackages.opium: mark as broken ocamlPackages.otr: mark as broken ocamlPackages.riot: mark as broken
48 lines
1.2 KiB
Nix
48 lines
1.2 KiB
Nix
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, camlp4, ocamlbuild
|
|
, erm_xml, mirage-crypto, mirage-crypto-rng, base64, digestif
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.3+20241009";
|
|
pname = "ocaml${ocaml.version}-erm_xmpp";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hannesm";
|
|
repo = "xmpp";
|
|
rev = "54418f77abf47b175e9c1b68a4f745a12b640d6a";
|
|
sha256 = "sha256-AbzZjNkW1VH/FOnzNruvelZeo3IYg/Usr3enQEknTQs=";
|
|
};
|
|
|
|
nativeBuildInputs = [ ocaml findlib ocamlbuild camlp4 ];
|
|
buildInputs = [ camlp4 ];
|
|
propagatedBuildInputs = [ erm_xml mirage-crypto mirage-crypto-rng base64 digestif ];
|
|
|
|
strictDeps = true;
|
|
|
|
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
|
|
'';
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
meta = {
|
|
homepage = "https://github.com/hannesm/xmpp";
|
|
description = "OCaml based XMPP implementation (fork)";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ sternenseemann ];
|
|
inherit (ocaml.meta) platforms;
|
|
};
|
|
}
|