package.nix (996B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 buildGoModule, 6 installShellFiles, 7 }: 8 9 buildGoModule (finalAttrs: { 10 pname = "chasquid"; 11 version = "1.18.0"; 12 13 __structuredAttrs = true; 14 15 src = fetchFromGitHub { 16 owner = "albertito"; 17 repo = "chasquid"; 18 tag = "v${finalAttrs.version}"; 19 hash = "sha256-FNr1DjH5AaLZdPsLy/jowpXkX3YhLkH2ygUANMD9ON0="; 20 }; 21 22 vendorHash = "sha256-zRd4CCLv9gVLykLazGH2P+XPKO8xh5QKshFrVP4YIZY="; 23 24 subPackages = [ 25 "." 26 "cmd/chasquid-util" 27 "cmd/smtp-check" 28 "cmd/mda-lmtp" 29 ]; 30 31 nativeBuildInputs = [ installShellFiles ]; 32 33 ldflags = [ 34 "-s" 35 "-X main.version=${finalAttrs.version}" 36 ]; 37 38 postInstall = '' 39 installManPage docs/man/*.{1,5} 40 ''; 41 42 meta = { 43 description = "SMTP (email) server with a focus on simplicity, security, and ease of operation"; 44 homepage = "https://blitiri.com.ar/p/chasquid/"; 45 license = lib.licenses.asl20; 46 maintainers = [ lib.maintainers.sikmir ]; 47 mainProgram = "chasquid"; 48 }; 49 })
