commit
a5b475a90e
50
pkgs/servers/mail/vsmtp/default.nix
Normal file
50
pkgs/servers/mail/vsmtp/default.nix
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, rustPlatform
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pkg-config
|
||||||
|
, installShellFiles
|
||||||
|
, openssl
|
||||||
|
, testers
|
||||||
|
, vsmtp
|
||||||
|
}:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "vsmtp";
|
||||||
|
version = "1.3.3";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "viridIT";
|
||||||
|
repo = "vsmtp";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-nBkfIjACmjnVNF3hJ22B4ecjWrX9licV7c8Yxv2tQCg=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoHash = "sha256-HqQ8WD1/K7xMx97SbuP45Q/+4oADh1WZFJPXB8wlkbM=";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkg-config installShellFiles ];
|
||||||
|
buildInputs = [ openssl ];
|
||||||
|
|
||||||
|
cargoBuildFlags = [
|
||||||
|
"--package"
|
||||||
|
"vsmtp"
|
||||||
|
"--package"
|
||||||
|
"vqueue"
|
||||||
|
];
|
||||||
|
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -22455,6 +22455,8 @@ with pkgs;
|
|||||||
|
|
||||||
vrpn = callPackage ../development/libraries/vrpn { };
|
vrpn = callPackage ../development/libraries/vrpn { };
|
||||||
|
|
||||||
|
vsmtp = callPackage ../servers/mail/vsmtp { };
|
||||||
|
|
||||||
vsqlite = callPackage ../development/libraries/vsqlite { };
|
vsqlite = callPackage ../development/libraries/vsqlite { };
|
||||||
|
|
||||||
vte = callPackage ../development/libraries/vte {
|
vte = callPackage ../development/libraries/vte {
|
||||||
|
Loading…
Reference in New Issue
Block a user