2022-10-21 18:38:19 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, installShellFiles
|
|
|
|
, testers
|
|
|
|
, vsmtp
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "vsmtp";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "2.2.1";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "viridIT";
|
|
|
|
repo = "vsmtp";
|
|
|
|
rev = "v${version}";
|
2023-04-12 12:48:02 +00:00
|
|
|
hash = "sha256-dRw5Q6bejaAJCnoR9j2wBU+L+p1pk1Tnxtm0WcRyOaY=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
cargoHash = "sha256-RYHn9kZZApgXWTExAHl9ZnCsuvqnnb67unmvd4Pnwz0=";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
buildFeatures = [
|
|
|
|
"telemetry"
|
|
|
|
"journald"
|
|
|
|
"syslog"
|
|
|
|
];
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
# tests do not run well in the nix sandbox
|
2023-01-20 10:41:00 +00:00
|
|
|
doCheck = false;
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage tools/install/man/*.1
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
tests.version = testers.testVersion { package = vsmtp; version = "v${version}"; };
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A next-gen mail transfer agent (MTA) written in Rust";
|
|
|
|
homepage = "https://viridit.com";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ nickcao ];
|
|
|
|
};
|
|
|
|
}
|