stalwart-vandelay: init at 1.0.2

add jmap import and export tool which may aid in planned refactor work
for stalwart NixOS module

* changelog: https://github.com/stalwartlabs/vandelay/releases/tag/v1.0.2

Related to: #511880

---

implement pr feedback:

* https://github.com/NixOS/nixpkgs/pull/530899#discussion_r3406372237
* https://github.com/NixOS/nixpkgs/pull/530899#discussion_r3406387919
* https://github.com/NixOS/nixpkgs/pull/530899#discussion_r3406391991
This commit is contained in:
Darren Rambaud
2026-06-12 19:54:30 -05:00
parent b5fe71a44a
commit 06a0e10bd7
@@ -0,0 +1,42 @@
{
lib,
cacert,
fetchFromGitHub,
rustPlatform,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "vandelay";
version = "1.0.2";
src = fetchFromGitHub {
owner = "stalwartlabs";
repo = "vandelay";
tag = "v${finalAttrs.version}";
hash = "sha256-RwcSwgzAqagm4JpNXptnXbHhtl7KoyPoiuSf2kBwzt8=";
};
cargoHash = "sha256-hxnnBy7YpwYhxw1jtGckNt0zU/6sdsXC8geFuwIJjWE=";
__structuredAttrs = true;
__darwinAllowLocalNetworking = true;
# called `Result::unwrap()` on an `Err` value: Tls("rustls platform verifier: unexpected error: No CA certificates were loaded from the system")
nativeCheckInputs = [
cacert
];
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
meta = {
description = "JMAP importer-exporter (and backup tool)";
longDescription = ''
One-shot account migration and backup across JMAP, IMAP, CalDAV, CardDAV, WebDAV, ManageSieve, Maildir, Google Takeout and Microsoft Exchange.
'';
homepage = "https://github.com/stalwartlabs/vandelay";
changelog = "https://github.com/stalwartlabs/vandelay/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.OR [
lib.licenses.mit
lib.licenses.apsl20
];
mainProgram = "vandelay";
maintainers = with lib.maintainers; [
debtquity
];
};
})