{ lib, buildGoModule, fetchgit }: buildGoModule rec { pname = "ai-mailer"; version = "0.1.0"; src = fetchgit { url = "https://git.cloonar.com/Paraclub/ai-mailer.git"; rev = "e88ac7caff72ffee206dc931f9e16b460d205f7e"; sha256 = "sha256-eafDeXvslj3P3TOcng1zObP/Vyva7GY/eSstmKynnBI="; }; vendorHash = "sha256-cEnb629V1dylMQfmB/8qv9gl1+T72rlkEd4wcsterXE="; 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 = [ ]; }; }