Files
2026-05-12 13:28:29 -05:00

42 lines
823 B
Nix

{
lib,
fetchurl,
buildDunePackage,
digestif,
sexplib0,
mirage-crypto,
mirage-crypto-pk,
astring,
base64,
}:
buildDunePackage (finalAttrs: {
pname = "otr";
version = "1.0.0";
minimalOCamlVersion = "4.13";
src = fetchurl {
url = "https://github.com/hannesm/ocaml-otr/releases/download/v${finalAttrs.version}/otr-${finalAttrs.version}.tbz";
hash = "sha256-/CcVqLbdylB+LqpKNETkpvQ8SEAIcEFCO1MZqvdmJWU=";
};
propagatedBuildInputs = [
digestif
sexplib0
mirage-crypto
mirage-crypto-pk
astring
base64
];
doCheck = true;
meta = {
homepage = "https://github.com/hannesm/ocaml-otr";
description = "Off-the-record messaging protocol, purely in OCaml";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ sternenseemann ];
};
})