From 06a0e10bd7daa74bc186a38f253ec303ac5a17e8 Mon Sep 17 00:00:00 2001 From: Darren Rambaud <225436867+debtquity@users.noreply.github.com> Date: Thu, 11 Jun 2026 19:46:07 -0500 Subject: [PATCH] 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 --- pkgs/by-name/st/stalwart-vandelay/package.nix | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 pkgs/by-name/st/stalwart-vandelay/package.nix diff --git a/pkgs/by-name/st/stalwart-vandelay/package.nix b/pkgs/by-name/st/stalwart-vandelay/package.nix new file mode 100644 index 000000000000..471c5029d1a1 --- /dev/null +++ b/pkgs/by-name/st/stalwart-vandelay/package.nix @@ -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 + ]; + }; +})