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