stalwart-cli: reuse cargoDeps from stalwart-mail
This commit is contained in:
parent
c9f9155575
commit
36e8d9eb96
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user