stalwart-cli: reuse cargoDeps from stalwart-mail

This commit is contained in:
Alexander Sieg 2025-01-28 11:46:16 +01:00
parent c9f9155575
commit 36e8d9eb96
No known key found for this signature in database

View File

@ -5,24 +5,26 @@
stalwart-mail,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage {
inherit (stalwart-mail) src version cargoDeps;
pname = "stalwart-cli";
version = stalwart-mail.version;
src = stalwart-mail.src;
buildAndTestSubdir = "crates/cli";
useFetchCargoVendor = true;
cargoHash = "sha256-k0pNNLwFRLI7eHjVwHGjgrnX4moWOwoWvMiyPfGMgCo=";
cargoBuildFlags = [
"--package"
"stalwart-cli"
];
cargoTestFlags = [
"--package"
"stalwart-cli"
];
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = [ "--version" ];
meta = {
inherit (stalwart-mail.meta) license homepage changelog;
description = "Stalwart Mail Server CLI";
homepage = "https://github.com/stalwartlabs/mail-server";
changelog = "https://github.com/stalwartlabs/mail-server/blob/v${version}/CHANGELOG.md";
license = lib.licenses.agpl3Only;
mainProgram = "stalwart-cli";
maintainers = with lib.maintainers; [
giomf