33 lines
860 B
Nix
33 lines
860 B
Nix
{ lib, buildGoModule, fetchgit }:
|
|
|
|
buildGoModule rec {
|
|
pname = "ai-mailer";
|
|
version = "0.1.0";
|
|
|
|
src = fetchgit {
|
|
url = "https://git.cloonar.com/Paraclub/ai-mailer.git";
|
|
rev = "6de059dca7cc9c053b56f26ff14edb77083fad73";
|
|
sha256 = "sha256-EPW0yLu1XHejEsU25ACO5FjxxCneVMlLmy1ZEHYqFtQ=";
|
|
};
|
|
|
|
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 = [ ];
|
|
};
|
|
}
|