nixpkgs/pkgs/by-name/st/stalwart-vandelay/package.nix
2026-07-03 10:36:33 +00:00

44 lines
1.4 KiB
Nix

{
lib,
cacert,
fetchFromGitHub,
nix-update-script,
rustPlatform,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "vandelay";
version = "1.0.5";
src = fetchFromGitHub {
owner = "stalwartlabs";
repo = "vandelay";
tag = "v${finalAttrs.version}";
hash = "sha256-ePOh2lJWJvZ5sV8KQ4n9A5pV7UhDBkN+RQ37LLoMm+o=";
};
cargoHash = "sha256-KlAarYv8Vzp0bpR2jhC4bG0iVyG5YPGvsa8GHRsscJg=";
__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 ];
passthru.updateScript = nix-update-script { };
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
];
};
})