Skip to content

Commit

Permalink
stalwart-cli: init at 0.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
giomf committed Jan 24, 2025
1 parent 3c037d6 commit 28e84bf
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions pkgs/by-name/st/stalwart-cli/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
lib,
rustPlatform,
versionCheckHook,
stalwart-mail,
}:

rustPlatform.buildRustPackage rec {
pname = "stalwart-cli";
version = stalwart-mail.version;
src = stalwart-mail.src;

buildAndTestSubdir = "crates/cli";
cargoHash = "sha256-9gqk26qCic1N8LHXLX3fWyk/oQr3QifbmPzAEWL6ZHo=";

# Currently disabled because of a mismatch in versioning:
# https://github.com/stalwartlabs/mail-server/blob/84a39bd6a42e0d45e793d6fb7d2158bbe740486e/crates/cli/Cargo.toml#L8
# Should be enabled again in next version!
# doInstallCheck = true;
# nativeInstallCheckInputs = [ versionCheckHook ];
# versionCheckProgramArg = [ "--version" ];

meta = {
description = "Stalwart Mail Server CLI";
homepage = "https://github.com/stalwartlabs/mail-server";
changelog = "https://github.com/stalwartlabs/mail-server/blob/main/CHANGELOG.md";
license = lib.licenses.agpl3Only;
mainProgram = "stalwart-cli";
maintainers = with lib.maintainers; [
giomf
];
};
}

0 comments on commit 28e84bf

Please sign in to comment.