{ lib, buildGoModule, fetchgit }: buildGoModule rec { pname = "ai-mailer"; version = "0.1.0"; src = fetchgit { url = "https://git.cloonar.com/Paraclub/ai-mailer.git"; rev = "56c9f764fcea2834fefac28f446b86c52f3274bd"; sha256 = "sha256-zOabK0OWh0iHEL0kMC74i4rYnUlry57dGQE4k/wqDG0="; }; vendorHash = "sha256-h4RaB891GXAkgObZHYil6BOvbYp6yJSRxRj40Fhchmw="; subPackages = [ "cmd/paraclub-ai-mailer" ]; preBuild = '' sed -i 's/go 1.23.5/go 1.22/' go.mod ''; postInstall = '' mv $out/bin/paraclub-ai-mailer $out/bin/ai-mailer ln -s $out/bin/ai-mailer $out/bin/paraclub-ai-mailer ''; meta = with lib; { description = "AI Mail Assistant Service"; homepage = "https://git.cloonar.com/Paraclub/ai-mailer"; license = licenses.unfree; # Adjust based on your project's license maintainers = [ ]; }; }