nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 48 lines 1.0 kB view raw
1{ lib 2, rustPlatform 3, fetchFromGitHub 4, installShellFiles 5, testers 6, vsmtp 7}: 8 9rustPlatform.buildRustPackage rec { 10 pname = "vsmtp"; 11 version = "2.2.1"; 12 13 src = fetchFromGitHub { 14 owner = "viridIT"; 15 repo = "vsmtp"; 16 rev = "v${version}"; 17 hash = "sha256-dRw5Q6bejaAJCnoR9j2wBU+L+p1pk1Tnxtm0WcRyOaY="; 18 }; 19 20 cargoHash = "sha256-RYHn9kZZApgXWTExAHl9ZnCsuvqnnb67unmvd4Pnwz0="; 21 22 nativeBuildInputs = [ installShellFiles ]; 23 24 buildFeatures = [ 25 "telemetry" 26 "journald" 27 "syslog" 28 ]; 29 30 # tests do not run well in the nix sandbox 31 doCheck = false; 32 33 postInstall = '' 34 installManPage tools/install/man/*.1 35 ''; 36 37 passthru = { 38 tests.version = testers.testVersion { package = vsmtp; version = "v${version}"; }; 39 }; 40 41 meta = with lib; { 42 description = "A next-gen mail transfer agent (MTA) written in Rust"; 43 homepage = "https://viridit.com"; 44 license = licenses.gpl3Plus; 45 platforms = platforms.linux; 46 maintainers = with maintainers; [ nickcao ]; 47 }; 48}