package.nix (1005B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 buildGoModule, 6 installShellFiles, 7 }: 8 9 buildGoModule (finalAttrs: { 10 pname = "chasquid"; 11 version = "1.17.0"; 12 13 __structuredAttrs = true; 14 15 src = fetchFromGitHub { 16 owner = "albertito"; 17 repo = "chasquid"; 18 tag = "v${finalAttrs.version}"; 19 hash = "sha256-KOfZKUK6KuW0yaDm5ZbjzGH3xYb84mNmIzEbSDjPtSk="; 20 }; 21 22 vendorHash = "sha256-u+4Ncr0P32avy8+ZLAzZHCqNm9zNVIC8m618ENh7IXg="; 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 "-w" 36 "-X main.version=${finalAttrs.version}" 37 ]; 38 39 postInstall = '' 40 installManPage docs/man/*.{1,5} 41 ''; 42 43 meta = { 44 description = "SMTP (email) server with a focus on simplicity, security, and ease of operation"; 45 homepage = "https://blitiri.com.ar/p/chasquid/"; 46 license = lib.licenses.asl20; 47 maintainers = [ lib.maintainers.sikmir ]; 48 mainProgram = "chasquid"; 49 }; 50 })
