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 + ]; + }; +})