depot/third_party/nixpkgs/pkgs/servers/mail/vsmtp/default.nix
Default email 4bac34ead1 Project import generated by Copybara.
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
2023-02-09 12:40:11 +01:00

42 lines
935 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, installShellFiles
, testers
, vsmtp
}:
rustPlatform.buildRustPackage rec {
pname = "vsmtp";
version = "2.1.0";
src = fetchFromGitHub {
owner = "viridIT";
repo = "vsmtp";
rev = "v${version}";
hash = "sha256-FI4BvU+83nTzRLJQZ1l1eOn41ZeA62Db+p3d//5o0Wk=";
};
cargoHash = "sha256-Qhhh0riM1qeD3/JZINvY0t5fEOj+prI0fyXagdR43sc=";
nativeBuildInputs = [ installShellFiles ];
# tests do not run well in the nix sandbox
doCheck = false;
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 ];
};
}